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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user