1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-20 05:21:21 +02:00

[Fix]NPE on ptime from console

This commit is contained in:
GunfighterJ
2013-04-02 10:22:35 -05:00
parent e78db0963c
commit fe51c55d0a

View File

@@ -41,7 +41,7 @@ public class Commandptime extends EssentialsCommand
}
IUser user = isUser(sender) ? getUser(sender) : null;
if ((!users.contains(user) || users.size() > 1) && user != null && !Permissions.PTIME_OTHERS.isAuthorized(user))
if (user != null && (!users.contains(user) || users.size() > 1) && !Permissions.PTIME_OTHERS.isAuthorized(user))
{
user.sendMessage(_("pTimeOthersPermission"));
return;