From d5f4dbc306b3af1ee75e07f2f09a82427a7ccf85 Mon Sep 17 00:00:00 2001 From: Kermit Frog Date: Sat, 10 Jul 2021 16:35:47 +0000 Subject: [PATCH] Jail Command Change --- .../rs09/game/system/command/sets/ModerationCommandSet.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Server/src/main/kotlin/rs09/game/system/command/sets/ModerationCommandSet.kt b/Server/src/main/kotlin/rs09/game/system/command/sets/ModerationCommandSet.kt index 756463cff..d6a9e47d6 100644 --- a/Server/src/main/kotlin/rs09/game/system/command/sets/ModerationCommandSet.kt +++ b/Server/src/main/kotlin/rs09/game/system/command/sets/ModerationCommandSet.kt @@ -1,6 +1,7 @@ package rs09.game.system.command.sets import core.game.node.entity.player.Player +import core.game.node.entity.player.info.Rights import rs09.game.system.command.Command import core.game.system.task.Pulse 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!") } - val NameCheck = name.toLowerCase() - if (NameCheck == "kermit" || NameCheck == "ceikry"){ + if (otherPlayer?.rights == Rights.ADMINISTRATOR){ reject(player, "You cannot jail $name, they are a god. Nice try though ${player.username}!") }