mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-01 12:36:41 +00:00
restrict clear features to admins etc etc
Signed-off-by: Robinson Gallego <robinson.leal7@gmail.com>
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user