Dropped unused ghost mode.
Contributed by Sahar.
This commit is contained in:
@ -326,8 +326,6 @@
|
||||
|
||||
<!-- ADMIN INSTANCE -->
|
||||
<admin command="admin_setinstance" accessLevel="100" />
|
||||
<admin command="admin_ghoston" accessLevel="100" />
|
||||
<admin command="admin_ghostoff" accessLevel="100" />
|
||||
<admin command="admin_createinstance" accessLevel="100" />
|
||||
<admin command="admin_destroyinstance" accessLevel="100" />
|
||||
<admin command="admin_listinstances" accessLevel="100" />
|
||||
|
@ -141,29 +141,6 @@ public class AdminInstance implements IAdminCommandHandler
|
||||
BuilderUtil.sendSysMessage(activeChar, "Use //destroyinstance id");
|
||||
}
|
||||
}
|
||||
|
||||
// set ghost mode on aka not appearing on any knownlist
|
||||
// you will be invis to all players but you also dont get update packets ;)
|
||||
// you will see snapshots (knownlist echoes?) if you port
|
||||
// so kinda useless atm
|
||||
// TODO: enable broadcast packets for ghosts
|
||||
else if (command.startsWith("admin_ghoston"))
|
||||
{
|
||||
activeChar.getAppearance().setGhostMode(true);
|
||||
BuilderUtil.sendSysMessage(activeChar, "Ghost mode enabled");
|
||||
activeChar.broadcastUserInfo();
|
||||
activeChar.decayMe();
|
||||
activeChar.spawnMe();
|
||||
}
|
||||
// ghost mode off
|
||||
else if (command.startsWith("admin_ghostoff"))
|
||||
{
|
||||
activeChar.getAppearance().setGhostMode(false);
|
||||
BuilderUtil.sendSysMessage(activeChar, "Ghost mode disabled");
|
||||
activeChar.broadcastUserInfo();
|
||||
activeChar.decayMe();
|
||||
activeChar.spawnMe();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -32,9 +32,6 @@ public class PcAppearance
|
||||
|
||||
private boolean _sex; // Female true(1)
|
||||
|
||||
/** true if the player is invisible */
|
||||
private boolean _ghostmode = false;
|
||||
|
||||
/** The current visible name of this player, not necessarily the real one */
|
||||
private String _visibleName;
|
||||
|
||||
@ -142,16 +139,6 @@ public class PcAppearance
|
||||
_sex = isfemale;
|
||||
}
|
||||
|
||||
public void setGhostMode(boolean b)
|
||||
{
|
||||
_ghostmode = b;
|
||||
}
|
||||
|
||||
public boolean isGhost()
|
||||
{
|
||||
return _ghostmode;
|
||||
}
|
||||
|
||||
public int getNameColor()
|
||||
{
|
||||
return _nameColor;
|
||||
|
Reference in New Issue
Block a user