Removed additional admin list visibility methods.
This commit is contained in:
@@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
|
|||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmliston"))
|
else if (command.startsWith("admin_gmliston"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().showGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, false);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmlistoff"))
|
else if (command.startsWith("admin_gmlistoff"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().hideGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, true);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
|
@@ -249,30 +249,6 @@ public class AdminData implements IXmlReader
|
|||||||
_gmList.remove(player);
|
_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.
|
* Checks if is GM online.
|
||||||
* @param includeHidden the include hidden
|
* @param includeHidden the include hidden
|
||||||
|
@@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
|
|||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmliston"))
|
else if (command.startsWith("admin_gmliston"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().showGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, false);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmlistoff"))
|
else if (command.startsWith("admin_gmlistoff"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().hideGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, true);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
|
@@ -249,30 +249,6 @@ public class AdminData implements IXmlReader
|
|||||||
_gmList.remove(player);
|
_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.
|
* Checks if is GM online.
|
||||||
* @param includeHidden the include hidden
|
* @param includeHidden the include hidden
|
||||||
|
@@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
|
|||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmliston"))
|
else if (command.startsWith("admin_gmliston"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().showGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, false);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmlistoff"))
|
else if (command.startsWith("admin_gmlistoff"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().hideGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, true);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
|
@@ -249,30 +249,6 @@ public class AdminData implements IXmlReader
|
|||||||
_gmList.remove(player);
|
_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.
|
* Checks if is GM online.
|
||||||
* @param includeHidden the include hidden
|
* @param includeHidden the include hidden
|
||||||
|
@@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
|
|||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmliston"))
|
else if (command.startsWith("admin_gmliston"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().showGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, false);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmlistoff"))
|
else if (command.startsWith("admin_gmlistoff"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().hideGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, true);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
|
@@ -249,30 +249,6 @@ public class AdminData implements IXmlReader
|
|||||||
_gmList.remove(player);
|
_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.
|
* Checks if is GM online.
|
||||||
* @param includeHidden the include hidden
|
* @param includeHidden the include hidden
|
||||||
|
@@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
|
|||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmliston"))
|
else if (command.startsWith("admin_gmliston"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().showGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, false);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmlistoff"))
|
else if (command.startsWith("admin_gmlistoff"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().hideGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, true);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
|
@@ -249,30 +249,6 @@ public class AdminData implements IXmlReader
|
|||||||
_gmList.remove(player);
|
_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.
|
* Checks if is GM online.
|
||||||
* @param includeHidden the include hidden
|
* @param includeHidden the include hidden
|
||||||
|
@@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
|
|||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmliston"))
|
else if (command.startsWith("admin_gmliston"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().showGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, false);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmlistoff"))
|
else if (command.startsWith("admin_gmlistoff"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().hideGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, true);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
|
@@ -249,30 +249,6 @@ public class AdminData implements IXmlReader
|
|||||||
_gmList.remove(player);
|
_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.
|
* Checks if is GM online.
|
||||||
* @param includeHidden the include hidden
|
* @param includeHidden the include hidden
|
||||||
|
@@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
|
|||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmliston"))
|
else if (command.startsWith("admin_gmliston"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().showGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, false);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmlistoff"))
|
else if (command.startsWith("admin_gmlistoff"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().hideGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, true);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
|
@@ -249,30 +249,6 @@ public class AdminData implements IXmlReader
|
|||||||
_gmList.remove(player);
|
_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.
|
* Checks if is GM online.
|
||||||
* @param includeHidden the include hidden
|
* @param includeHidden the include hidden
|
||||||
|
@@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
|
|||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmliston"))
|
else if (command.startsWith("admin_gmliston"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().showGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, false);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmlistoff"))
|
else if (command.startsWith("admin_gmlistoff"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().hideGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, true);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
|
@@ -249,30 +249,6 @@ public class AdminData implements IXmlReader
|
|||||||
_gmList.remove(player);
|
_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.
|
* Checks if is GM online.
|
||||||
* @param includeHidden the include hidden
|
* @param includeHidden the include hidden
|
||||||
|
@@ -272,30 +272,6 @@ public class AdminData implements IXmlReader
|
|||||||
_gmList.remove(player);
|
_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)
|
public boolean isGmOnline(boolean includeHidden)
|
||||||
{
|
{
|
||||||
for (boolean value : _gmList.values())
|
for (boolean value : _gmList.values())
|
||||||
|
@@ -77,13 +77,13 @@ public class AdminAdmin implements IAdminCommandHandler
|
|||||||
}
|
}
|
||||||
case "admin_gmliston":
|
case "admin_gmliston":
|
||||||
{
|
{
|
||||||
AdminData.getInstance().showGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, false);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Registerd into GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Registerd into GM list.");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
case "admin_gmlistoff":
|
case "admin_gmlistoff":
|
||||||
{
|
{
|
||||||
AdminData.getInstance().hideGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, true);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@@ -77,14 +77,14 @@ public class AdminAdmin implements IAdminCommandHandler
|
|||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmliston"))
|
else if (command.startsWith("admin_gmliston"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().showGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, false);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list");
|
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmlistoff"))
|
else if (command.startsWith("admin_gmlistoff"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().hideGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, true);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list");
|
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
else if (command.startsWith("admin_silence"))
|
else if (command.startsWith("admin_silence"))
|
||||||
|
@@ -249,30 +249,6 @@ public class AdminData implements IXmlReader
|
|||||||
_gmList.remove(player);
|
_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.
|
* Checks if is GM online.
|
||||||
* @param includeHidden the include hidden
|
* @param includeHidden the include hidden
|
||||||
|
@@ -77,14 +77,14 @@ public class AdminAdmin implements IAdminCommandHandler
|
|||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmliston"))
|
else if (command.startsWith("admin_gmliston"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().showGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, false);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list");
|
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmlistoff"))
|
else if (command.startsWith("admin_gmlistoff"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().hideGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, true);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list");
|
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
else if (command.startsWith("admin_silence"))
|
else if (command.startsWith("admin_silence"))
|
||||||
|
@@ -249,30 +249,6 @@ public class AdminData implements IXmlReader
|
|||||||
_gmList.remove(player);
|
_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.
|
* Checks if is GM online.
|
||||||
* @param includeHidden the include hidden
|
* @param includeHidden the include hidden
|
||||||
|
@@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
|
|||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmliston"))
|
else if (command.startsWith("admin_gmliston"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().showGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, false);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmlistoff"))
|
else if (command.startsWith("admin_gmlistoff"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().hideGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, true);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
|
@@ -249,30 +249,6 @@ public class AdminData implements IXmlReader
|
|||||||
_gmList.remove(player);
|
_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.
|
* Checks if is GM online.
|
||||||
* @param includeHidden the include hidden
|
* @param includeHidden the include hidden
|
||||||
|
@@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
|
|||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmliston"))
|
else if (command.startsWith("admin_gmliston"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().showGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, false);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmlistoff"))
|
else if (command.startsWith("admin_gmlistoff"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().hideGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, true);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
|
@@ -249,30 +249,6 @@ public class AdminData implements IXmlReader
|
|||||||
_gmList.remove(player);
|
_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.
|
* Checks if is GM online.
|
||||||
* @param includeHidden the include hidden
|
* @param includeHidden the include hidden
|
||||||
|
@@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
|
|||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmliston"))
|
else if (command.startsWith("admin_gmliston"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().showGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, false);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmlistoff"))
|
else if (command.startsWith("admin_gmlistoff"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().hideGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, true);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
|
@@ -249,30 +249,6 @@ public class AdminData implements IXmlReader
|
|||||||
_gmList.remove(player);
|
_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.
|
* Checks if is GM online.
|
||||||
* @param includeHidden the include hidden
|
* @param includeHidden the include hidden
|
||||||
|
@@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
|
|||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmliston"))
|
else if (command.startsWith("admin_gmliston"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().showGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, false);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmlistoff"))
|
else if (command.startsWith("admin_gmlistoff"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().hideGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, true);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
|
@@ -249,30 +249,6 @@ public class AdminData implements IXmlReader
|
|||||||
_gmList.remove(player);
|
_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.
|
* Checks if is GM online.
|
||||||
* @param includeHidden the include hidden
|
* @param includeHidden the include hidden
|
||||||
|
@@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
|
|||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmliston"))
|
else if (command.startsWith("admin_gmliston"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().showGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, false);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmlistoff"))
|
else if (command.startsWith("admin_gmlistoff"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().hideGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, true);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
|
@@ -249,30 +249,6 @@ public class AdminData implements IXmlReader
|
|||||||
_gmList.remove(player);
|
_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.
|
* Checks if is GM online.
|
||||||
* @param includeHidden the include hidden
|
* @param includeHidden the include hidden
|
||||||
|
@@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
|
|||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmliston"))
|
else if (command.startsWith("admin_gmliston"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().showGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, false);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmlistoff"))
|
else if (command.startsWith("admin_gmlistoff"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().hideGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, true);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
|
@@ -249,30 +249,6 @@ public class AdminData implements IXmlReader
|
|||||||
_gmList.remove(player);
|
_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.
|
* Checks if is GM online.
|
||||||
* @param includeHidden the include hidden
|
* @param includeHidden the include hidden
|
||||||
|
@@ -85,13 +85,13 @@ public class AdminAdmin implements IAdminCommandHandler
|
|||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmliston"))
|
else if (command.startsWith("admin_gmliston"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().showGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, false);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Registered into GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
else if (command.startsWith("admin_gmlistoff"))
|
else if (command.startsWith("admin_gmlistoff"))
|
||||||
{
|
{
|
||||||
AdminData.getInstance().hideGm(activeChar);
|
AdminData.getInstance().addGm(activeChar, true);
|
||||||
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
BuilderUtil.sendSysMessage(activeChar, "Removed from GM list.");
|
||||||
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
AdminHtml.showAdminHtml(activeChar, "gm_menu.htm");
|
||||||
}
|
}
|
||||||
|
@@ -249,30 +249,6 @@ public class AdminData implements IXmlReader
|
|||||||
_gmList.remove(player);
|
_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.
|
* Checks if is GM online.
|
||||||
* @param includeHidden the include hidden
|
* @param includeHidden the include hidden
|
||||||
|
Reference in New Issue
Block a user