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> <permission name="ipban">7</permission>
<!-- Removes IP ban --> <!-- Removes IP ban -->
<permission name="unipban">10</permission> <permission name="unipban">10</permission>
<!-- Reloads IP bans from database -->
<permission name="reloadipbans">10</permission>
<setting> <setting>
<!-- Minimum delay between commands --> <!-- Minimum delay between commands -->

View File

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