Added reloadipbans command.

Dumped current database structure. (needs some cleanup)
This commit is contained in:
CodeForFame 2011-06-25 21:38:50 -05:00
parent 3fa1321df3
commit 428c3ec7cb
3 changed files with 108 additions and 1237 deletions

File diff suppressed because it is too large Load Diff

View File

@ -48,6 +48,8 @@
<permission name="ipban">7</permission>
<!-- Removes IP ban -->
<permission name="unipban">10</permission>
<!-- Reloads IP bans from database -->
<permission name="reloadipbans">10</permission>
<setting>
<!-- Minimum delay between commands -->

View File

@ -101,6 +101,7 @@ class CommandHandler extends PacketHandler {
case "thread" => enableMultiThreading(p)
case "ipban" => ipban(p, args, world)
case "unipban" => unipban(p, args)
case "reloadipbans" => reloadIPBans(p)
case _ => none = true
}
if (!none)
@ -314,6 +315,11 @@ class CommandHandler extends PacketHandler {
+ '.')
}
def reloadIPBans(p:Player) {
IPBanManager.reloadIPBans
message(p, "IP bans reloaded")
}
// Helper methods
def message(p: Player, msg: String) {