Package zombie.network
Class ServerWorldDatabase
java.lang.Object
zombie.network.ServerWorldDatabase
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addUserlog
(String string, Userlog.UserlogType userlogType, String string2, String string3, int int1) addWarningPoint
(String string, String string2, int int1, String string3) authClient
(long long1) authClient
(String string, String string2, String string3, long long1) authOwner
(long long1, long long2) banSteamID
(String string, String string2, boolean boolean1) changeUsername
(String string, String string2) void
close()
boolean
containsCaseinsensitiveUser
(String string) boolean
containsUser
(String string) void
create()
static String
void
executeQuery
(String string, KahluaTable kahluaTable) getDisplayName
(String string) getTableResult
(String string) getTickets
(String string) getUserlog
(String string) grantAdmin
(String string, boolean boolean1) static boolean
isValidUserName
(String string) void
removeTicket
(int int1) removeUser
(String string) void
removeUserLog
(String string, String string2, String string3) void
saveAllTransactionsID
(HashMap hashMap) void
saveTransactionID
(String string, Integer integer) setAccessLevel
(String string, String string2) void
setPassword
(String string, String string2) setUserSteamID
(String string, String string2) void
updateDisplayName
(String string, String string2) void
updateLastConnectionDate
(String string, String string2)
-
Field Details
-
instance
-
CommandLineAdminUsername
-
CommandLineAdminPassword
-
doAdmin
public boolean doAdmin -
dbSchema
-
-
Constructor Details
-
ServerWorldDatabase
public ServerWorldDatabase()
-
-
Method Details
-
getDBSchema
-
executeQuery
- Throws:
SQLException
-
getTableResult
- Throws:
SQLException
-
saveAllTransactionsID
-
saveTransactionID
-
containsUser
-
containsCaseinsensitiveUser
-
changeUsername
- Throws:
SQLException
-
addUser
- Throws:
SQLException
-
updateDisplayName
-
getDisplayName
-
removeUser
- Throws:
SQLException
-
removeUserLog
- Throws:
SQLException
-
create
- Throws:
SQLException
ClassNotFoundException
-
close
public void close() -
isValidUserName
-
authClient
public ServerWorldDatabase.LogonResult authClient(String string, String string2, String string3, long long1) -
authClient
-
authOwner
-
encrypt
-
changePwd
- Throws:
SQLException
-
grantAdmin
- Throws:
SQLException
-
setAccessLevel
- Throws:
SQLException
-
getUserlog
-
addUserlog
public void addUserlog(String string, Userlog.UserlogType userlogType, String string2, String string3, int int1) -
banUser
- Throws:
SQLException
-
banIp
public String banIp(String string, String string2, String string3, boolean boolean1) throws SQLException - Throws:
SQLException
-
banSteamID
- Throws:
SQLException
-
setUserSteamID
-
setPassword
- Throws:
SQLException
-
updateLastConnectionDate
-
addWarningPoint
public String addWarningPoint(String string, String string2, int int1, String string3) throws SQLException - Throws:
SQLException
-
addTicket
- Throws:
SQLException
-
getTickets
- Throws:
SQLException
-
removeTicket
- Throws:
SQLException
-