More hub fix
This commit is contained in:
parent
e93a8c5a23
commit
64f4302008
@ -70,18 +70,17 @@ public class MapManager extends MiniPlugin
|
||||
_url = args[0];
|
||||
caller.getInventory().addItem(GetMap());
|
||||
|
||||
|
||||
if (args.length > 1)
|
||||
{
|
||||
if (args[1].equals("all"))
|
||||
{
|
||||
for (Player player : UtilServer.getPlayers())
|
||||
{
|
||||
player.getInventory().remove(Material.MAP);
|
||||
|
||||
if (player.equals(caller))
|
||||
continue;
|
||||
|
||||
player.getInventory().remove(Material.MAP);
|
||||
|
||||
player.getInventory().addItem(GetMap());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user