mirror of
https://github.com/essentials/Essentials.git
synced 2025-02-25 00:42:48 +01:00
Make sure player is online when sending a /reply.
This commit is contained in:
parent
8e36855fb8
commit
ba8aa8bf28
@ -53,7 +53,7 @@ public class Commandr extends EssentialsCommand
|
||||
final CommandSender target = replyTo.getReplyTo();
|
||||
final String targetName = target instanceof Player ? ((Player)target).getDisplayName() : Console.NAME;
|
||||
|
||||
if (target == null)
|
||||
if (target == null || ((target instanceof Player) && ((Player)target).isOnline()))
|
||||
{
|
||||
throw new Exception(_("foreverAlone"));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user