Removed additional admin list visibility methods.
This commit is contained in:
parent
804d654a08
commit
ed6274df0e
@ -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");
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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"))
|
||||
|
@ -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
|
||||
|
@ -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"))
|
||||
|
@ -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
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user