Removed additional admin list visibility methods.

This commit is contained in:
MobiusDevelopment 2020-06-07 21:40:52 +00:00
parent 804d654a08
commit ed6274df0e
36 changed files with 40 additions and 472 deletions

View File

@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
}
else if (command.startsWith("admin_gmliston"))
{
AdminData.getInstance().showGm(activeChar);
AdminData.getInstance().addGm(activeChar, false);
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}
else if (command.startsWith("admin_gmlistoff"))
{
AdminData.getInstance().hideGm(activeChar);
AdminData.getInstance().addGm(activeChar, true);
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}

View File

@ -249,30 +249,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);
}
}
/**
* Checks if is GM online.
* @param includeHidden the include hidden

View File

@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
}
else if (command.startsWith("admin_gmliston"))
{
AdminData.getInstance().showGm(activeChar);
AdminData.getInstance().addGm(activeChar, false);
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}
else if (command.startsWith("admin_gmlistoff"))
{
AdminData.getInstance().hideGm(activeChar);
AdminData.getInstance().addGm(activeChar, true);
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}

View File

@ -249,30 +249,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);
}
}
/**
* Checks if is GM online.
* @param includeHidden the include hidden

View File

@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
}
else if (command.startsWith("admin_gmliston"))
{
AdminData.getInstance().showGm(activeChar);
AdminData.getInstance().addGm(activeChar, false);
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}
else if (command.startsWith("admin_gmlistoff"))
{
AdminData.getInstance().hideGm(activeChar);
AdminData.getInstance().addGm(activeChar, true);
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}

View File

@ -249,30 +249,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);
}
}
/**
* Checks if is GM online.
* @param includeHidden the include hidden

View File

@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
}
else if (command.startsWith("admin_gmliston"))
{
AdminData.getInstance().showGm(activeChar);
AdminData.getInstance().addGm(activeChar, false);
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}
else if (command.startsWith("admin_gmlistoff"))
{
AdminData.getInstance().hideGm(activeChar);
AdminData.getInstance().addGm(activeChar, true);
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}

View File

@ -249,30 +249,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);
}
}
/**
* Checks if is GM online.
* @param includeHidden the include hidden

View File

@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
}
else if (command.startsWith("admin_gmliston"))
{
AdminData.getInstance().showGm(activeChar);
AdminData.getInstance().addGm(activeChar, false);
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}
else if (command.startsWith("admin_gmlistoff"))
{
AdminData.getInstance().hideGm(activeChar);
AdminData.getInstance().addGm(activeChar, true);
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}

View File

@ -249,30 +249,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);
}
}
/**
* Checks if is GM online.
* @param includeHidden the include hidden

View File

@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
}
else if (command.startsWith("admin_gmliston"))
{
AdminData.getInstance().showGm(activeChar);
AdminData.getInstance().addGm(activeChar, false);
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}
else if (command.startsWith("admin_gmlistoff"))
{
AdminData.getInstance().hideGm(activeChar);
AdminData.getInstance().addGm(activeChar, true);
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}

View File

@ -249,30 +249,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);
}
}
/**
* Checks if is GM online.
* @param includeHidden the include hidden

View File

@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
}
else if (command.startsWith("admin_gmliston"))
{
AdminData.getInstance().showGm(activeChar);
AdminData.getInstance().addGm(activeChar, false);
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}
else if (command.startsWith("admin_gmlistoff"))
{
AdminData.getInstance().hideGm(activeChar);
AdminData.getInstance().addGm(activeChar, true);
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}

View File

@ -249,30 +249,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);
}
}
/**
* Checks if is GM online.
* @param includeHidden the include hidden

View File

@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
}
else if (command.startsWith("admin_gmliston"))
{
AdminData.getInstance().showGm(activeChar);
AdminData.getInstance().addGm(activeChar, false);
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}
else if (command.startsWith("admin_gmlistoff"))
{
AdminData.getInstance().hideGm(activeChar);
AdminData.getInstance().addGm(activeChar, true);
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}

View File

@ -249,30 +249,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);
}
}
/**
* Checks if is GM online.
* @param includeHidden the include hidden

View File

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

View File

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

View File

@ -77,14 +77,14 @@ public class AdminAdmin implements IAdminCommandHandler
}
else if (command.startsWith("admin_gmliston"))
{
AdminData.getInstance().showGm(activeChar);
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list");
AdminData.getInstance().addGm(activeChar, false);
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}
else if (command.startsWith("admin_gmlistoff"))
{
AdminData.getInstance().hideGm(activeChar);
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list");
AdminData.getInstance().addGm(activeChar, true);
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}
else if (command.startsWith("admin_silence"))

View File

@ -249,30 +249,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);
}
}
/**
* Checks if is GM online.
* @param includeHidden the include hidden

View File

@ -77,14 +77,14 @@ public class AdminAdmin implements IAdminCommandHandler
}
else if (command.startsWith("admin_gmliston"))
{
AdminData.getInstance().showGm(activeChar);
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list");
AdminData.getInstance().addGm(activeChar, false);
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}
else if (command.startsWith("admin_gmlistoff"))
{
AdminData.getInstance().hideGm(activeChar);
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list");
AdminData.getInstance().addGm(activeChar, true);
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}
else if (command.startsWith("admin_silence"))

View File

@ -249,30 +249,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);
}
}
/**
* Checks if is GM online.
* @param includeHidden the include hidden

View File

@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
}
else if (command.startsWith("admin_gmliston"))
{
AdminData.getInstance().showGm(activeChar);
AdminData.getInstance().addGm(activeChar, false);
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}
else if (command.startsWith("admin_gmlistoff"))
{
AdminData.getInstance().hideGm(activeChar);
AdminData.getInstance().addGm(activeChar, true);
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}

View File

@ -249,30 +249,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);
}
}
/**
* Checks if is GM online.
* @param includeHidden the include hidden

View File

@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
}
else if (command.startsWith("admin_gmliston"))
{
AdminData.getInstance().showGm(activeChar);
AdminData.getInstance().addGm(activeChar, false);
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}
else if (command.startsWith("admin_gmlistoff"))
{
AdminData.getInstance().hideGm(activeChar);
AdminData.getInstance().addGm(activeChar, true);
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}

View File

@ -249,30 +249,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);
}
}
/**
* Checks if is GM online.
* @param includeHidden the include hidden

View File

@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
}
else if (command.startsWith("admin_gmliston"))
{
AdminData.getInstance().showGm(activeChar);
AdminData.getInstance().addGm(activeChar, false);
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}
else if (command.startsWith("admin_gmlistoff"))
{
AdminData.getInstance().hideGm(activeChar);
AdminData.getInstance().addGm(activeChar, true);
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}

View File

@ -249,30 +249,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);
}
}
/**
* Checks if is GM online.
* @param includeHidden the include hidden

View File

@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
}
else if (command.startsWith("admin_gmliston"))
{
AdminData.getInstance().showGm(activeChar);
AdminData.getInstance().addGm(activeChar, false);
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}
else if (command.startsWith("admin_gmlistoff"))
{
AdminData.getInstance().hideGm(activeChar);
AdminData.getInstance().addGm(activeChar, true);
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}

View File

@ -249,30 +249,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);
}
}
/**
* Checks if is GM online.
* @param includeHidden the include hidden

View File

@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
}
else if (command.startsWith("admin_gmliston"))
{
AdminData.getInstance().showGm(activeChar);
AdminData.getInstance().addGm(activeChar, false);
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}
else if (command.startsWith("admin_gmlistoff"))
{
AdminData.getInstance().hideGm(activeChar);
AdminData.getInstance().addGm(activeChar, true);
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}

View File

@ -249,30 +249,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);
}
}
/**
* Checks if is GM online.
* @param includeHidden the include hidden

View File

@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
}
else if (command.startsWith("admin_gmliston"))
{
AdminData.getInstance().showGm(activeChar);
AdminData.getInstance().addGm(activeChar, false);
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}
else if (command.startsWith("admin_gmlistoff"))
{
AdminData.getInstance().hideGm(activeChar);
AdminData.getInstance().addGm(activeChar, true);
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}

View File

@ -249,30 +249,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);
}
}
/**
* Checks if is GM online.
* @param includeHidden the include hidden

View File

@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
}
else if (command.startsWith("admin_gmliston"))
{
AdminData.getInstance().showGm(activeChar);
AdminData.getInstance().addGm(activeChar, false);
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}
else if (command.startsWith("admin_gmlistoff"))
{
AdminData.getInstance().hideGm(activeChar);
AdminData.getInstance().addGm(activeChar, true);
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
}

View File

@ -249,30 +249,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);
}
}
/**
* Checks if is GM online.
* @param includeHidden the include hidden