mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-08 15:46:54 +02:00
Merge pull request #435 from GunfighterJ/2.9
[Fix] NPE on ptime from console
This commit is contained in:
@@ -46,7 +46,7 @@ public class Commandptime extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
|
|
||||||
User user = ess.getUser(sender);
|
User user = ess.getUser(sender);
|
||||||
if ((!users.contains(user) || users.size() > 1) && user != null && !user.isAuthorized("essentials.ptime.others"))
|
if (user != null && (!users.contains(user) || users.size() > 1)&& !user.isAuthorized("essentials.ptime.others"))
|
||||||
{
|
{
|
||||||
user.sendMessage(_("pTimeOthersPermission"));
|
user.sendMessage(_("pTimeOthersPermission"));
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user