diff --git a/AdminTools/Commands/Kick/Kick.cs b/AdminTools/Commands/Kick/Kick.cs index b818d20..6256635 100644 --- a/AdminTools/Commands/Kick/Kick.cs +++ b/AdminTools/Commands/Kick/Kick.cs @@ -42,6 +42,12 @@ protected override bool ExecuteParent(ArraySegment arguments, ICommandSe return false; } + if(ply.ReferenceHub.serverRoles.Group != null && ply.ReferenceHub.serverRoles.Group.RequiredKickPower > ((CommandSender)sender).KickPower) + { + response = $"You do not have permission to kick the specified player"; + return false; + } + ply.Kick(EventHandlers.FormatArguments(arguments, 1)); response = $"Player {ply.Nickname} has been kicked for \"{EventHandlers.FormatArguments(arguments, 1)}\""; return true;