Jail Command Change

This commit is contained in:
Kermit Frog
2021-07-10 16:35:47 +00:00
committed by Ceikry
parent 70407191d1
commit d5f4dbc306
@@ -1,6 +1,7 @@
package rs09.game.system.command.sets package rs09.game.system.command.sets
import core.game.node.entity.player.Player import core.game.node.entity.player.Player
import core.game.node.entity.player.info.Rights
import rs09.game.system.command.Command import rs09.game.system.command.Command
import core.game.system.task.Pulse import core.game.system.task.Pulse
import rs09.game.world.GameWorld import rs09.game.world.GameWorld
@@ -59,8 +60,7 @@ class ModerationCommandSet : CommandSet(Command.Privilege.MODERATOR){
reject(player, "Can not find $name in the player list!") reject(player, "Can not find $name in the player list!")
} }
val NameCheck = name.toLowerCase() if (otherPlayer?.rights == Rights.ADMINISTRATOR){
if (NameCheck == "kermit" || NameCheck == "ceikry"){
reject(player, "You cannot jail $name, they are a god. Nice try though ${player.username}!") reject(player, "You cannot jail $name, they are a god. Nice try though ${player.username}!")
} }