mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-04 11:36:24 +00:00
[Fix] NPE on ptime from console
This commit is contained in:
parent
e3183e66df
commit
e4b04db412
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ public class Commandptime extends EssentialsCommand
|
|||
}
|
||||
|
||||
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"));
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue