forked from 2009Scape/Server
Adventure Bots & Commands
This commit is contained in:
parent
d3a7a41b8d
commit
ec058da8f2
2 changed files with 607 additions and 601 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -58,6 +58,12 @@ class ModerationCommandSet : CommandSet(Command.Privilege.MODERATOR){
|
|||
if(otherPlayer == null){
|
||||
reject(player, "Can not find $name in the player list!")
|
||||
}
|
||||
|
||||
val NameCheck = name.toLowerCase()
|
||||
if (NameCheck == "kermit" || NameCheck == "ceikry"){
|
||||
reject(player, "You cannot jail $name, they are a god. Nice try though ${player.username}!")
|
||||
}
|
||||
|
||||
notify(player, "Jailing ${otherPlayer!!.username} for $timeSeconds seconds.")
|
||||
notify(otherPlayer, "${player.username} has jailed you for $timeSeconds seconds.")
|
||||
GameWorld.Pulser.submit(object : Pulse(3){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue