mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-06-05 22:09:44 +00:00
[trunk] Clear Inventory: Fix "Player not found" message
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1124 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
5f177b3b1e
commit
b19fa531cf
1 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,7 @@ public class Commandclearinventory extends EssentialsCommand
|
||||||
user.sendMessage("§7Inventory of §c" + p.getDisplayName() + "§7 cleared.");
|
user.sendMessage("§7Inventory of §c" + p.getDisplayName() + "§7 cleared.");
|
||||||
user.charge(this);
|
user.charge(this);
|
||||||
}
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
throw new Exception("Player not found");
|
throw new Exception("Player not found");
|
||||||
}
|
}
|
||||||
|
@ -79,6 +80,7 @@ public class Commandclearinventory extends EssentialsCommand
|
||||||
p.getInventory().clear();
|
p.getInventory().clear();
|
||||||
sender.sendMessage("§7Inventory of §c" + p.getDisplayName() + "§7 cleared.");
|
sender.sendMessage("§7Inventory of §c" + p.getDisplayName() + "§7 cleared.");
|
||||||
}
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
throw new Exception("Player not found");
|
throw new Exception("Player not found");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue