More hub fix

This commit is contained in:
Chiss 2013-09-08 12:09:50 +10:00
parent e93a8c5a23
commit 64f4302008
2 changed files with 4 additions and 5 deletions

View File

@ -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());
}
}