mirror of
https://github.com/moparisthebest/MoparClassic
synced 2024-12-21 23:18:52 -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>
|
<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 -->
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user