Territory owner list was not being shown to people who aren't running the Spoutcraft client, when Spout was hooked... fixed

This commit is contained in:
Brettflan
2011-10-13 14:30:47 -05:00
parent d7a2a88f95
commit 358186764d
2 changed files with 11 additions and 3 deletions

View File

@ -50,12 +50,18 @@ public class SpoutFeatures
}
}
// If any Spout feature is enabled in conf.json, and we're successfully hooked into it
// If we're successfully hooked into Spout
public static boolean enabled()
{
return spoutMe;
}
// If Spout is available and the specified Player is running the Spoutcraft client
public static boolean availableFor(Player player)
{
return spoutMe && SpoutManager.getPlayer(player).isSpoutCraftEnabled();
}
// update displayed current territory for specified player; returns false if unsuccessful
public static boolean updateTerritoryDisplay(FPlayer player)