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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user