restrict clear features to admins etc etc

Signed-off-by: Robinson Gallego <robinson.leal7@gmail.com>
This commit is contained in:
Robinson Gallego
2019-07-30 17:05:59 -04:00
parent a71bfde4ee
commit c3d35487e7
2 changed files with 13 additions and 2 deletions

View File

@ -36,6 +36,11 @@ public class Command_whohas extends FreedomCommand
final List<String> players = new ArrayList<>();
if (!plugin.al.isAdmin(playerSender))
{
return noPerms();
}
for (final Player player : server.getOnlinePlayers())
{
if (player.getInventory().contains(material))