Removed additional admin list visibility methods.
This commit is contained in:
@ -272,30 +272,6 @@ public class AdminData implements IXmlReader
|
||||
_gmList.remove(player);
|
||||
}
|
||||
|
||||
/**
|
||||
* GM will be displayed on clients GM list.
|
||||
* @param player the player
|
||||
*/
|
||||
public void showGm(PlayerInstance player)
|
||||
{
|
||||
if (_gmList.containsKey(player))
|
||||
{
|
||||
_gmList.put(player, false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* GM will no longer be displayed on clients GM list.
|
||||
* @param player the player
|
||||
*/
|
||||
public void hideGm(PlayerInstance player)
|
||||
{
|
||||
if (_gmList.containsKey(player))
|
||||
{
|
||||
_gmList.put(player, true);
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isGmOnline(boolean includeHidden)
|
||||
{
|
||||
for (boolean value : _gmList.values())
|
||||
|
@ -77,13 +77,13 @@ public class AdminAdmin implements IAdminCommandHandler
|
||||
}
|
||||
case "admin_gmliston":
|
||||
{
|
||||
AdminData.getInstance().showGm(activeChar);
|
||||
AdminData.getInstance().addGm(activeChar, false);
|
||||
BuilderUtil.sendSysMessage(activeChar, "Registerd into GM list.");
|
||||
return true;
|
||||
}
|
||||
case "admin_gmlistoff":
|
||||
{
|
||||
AdminData.getInstance().hideGm(activeChar);
|
||||
AdminData.getInstance().addGm(activeChar, true);
|
||||
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user