Inconsistency and Ridiculous Bug Corrections (#189)

This commit is contained in:
Video
2020-03-16 18:58:44 -06:00
committed by GitHub
parent c94ce6b276
commit 48ee7b0e6d
24 changed files with 42 additions and 28 deletions

View File

@ -62,7 +62,7 @@ public class Command_potion extends FreedomCommand
{
target = getPlayer(args[1]);
if (target == null)
if (target == null || Command_vanish.VANISHED.contains(target) && !plugin.al.isAdmin(sender))
{
msg(FreedomCommand.PLAYER_NOT_FOUND, ChatColor.RED);
return true;
@ -103,10 +103,9 @@ public class Command_potion extends FreedomCommand
if (args.length == 5)
{
target = getPlayer(args[4]);
if (target == null)
if (target == null || Command_vanish.VANISHED.contains(target) && !plugin.al.isAdmin(sender))
{
msg(FreedomCommand.PLAYER_NOT_FOUND, ChatColor.RED);
return true;