mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-18 12:31:26 +02:00
remove null check for user in toggle jail. this is handled when we get user
This commit is contained in:
@@ -23,11 +23,6 @@ public class Commandtogglejail extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
|
|
||||||
User p = getPlayer(server, args, 0, true);
|
User p = getPlayer(server, args, 0, true);
|
||||||
|
|
||||||
if(p == null)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
if (p.isAuthorized("essentials.jail.exempt"))
|
if (p.isAuthorized("essentials.jail.exempt"))
|
||||||
{
|
{
|
||||||
sender.sendMessage(Util.i18n("mayNotJail"));
|
sender.sendMessage(Util.i18n("mayNotJail"));
|
||||||
|
Reference in New Issue
Block a user