mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-19 13:01:20 +02:00
Fix NPE in /seen
This commit is contained in:
@@ -38,11 +38,11 @@ public class Commandseen extends EssentialsCommand
|
||||
{
|
||||
@Cleanup
|
||||
IUser u = ess.getUserMap().getUser(args[0]);
|
||||
u.acquireReadLock();
|
||||
if (u == null)
|
||||
{
|
||||
throw new Exception(_("playerNotFound"));
|
||||
}
|
||||
u.acquireReadLock();
|
||||
sender.sendMessage(_("seenOffline", u.getPlayer().getDisplayName(), DateUtil.formatDateDiff(u.getTimestamp(TimestampType.LOGOUT))));
|
||||
if (u.isBanned())
|
||||
{
|
||||
|
Reference in New Issue
Block a user