mirror of
https://github.com/moparisthebest/MoparClassic
synced 2024-12-21 06:58:55 -05:00
Added reloadipbans command.
Dumped current database structure. (needs some cleanup)
This commit is contained in:
parent
3fa1321df3
commit
428c3ec7cb
1337
Database.sql
1337
Database.sql
File diff suppressed because it is too large
Load Diff
@ -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 -->
|
||||
|
@ -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)
|
||||
@ -313,6 +314,11 @@ class CommandHandler extends PacketHandler {
|
||||
}
|
||||
+ '.')
|
||||
}
|
||||
|
||||
def reloadIPBans(p:Player) {
|
||||
IPBanManager.reloadIPBans
|
||||
message(p, "IP bans reloaded")
|
||||
}
|
||||
|
||||
// Helper methods
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user