Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: L2PcInstance.java
- + private boolean _AnnSpawnLoc = true;
- + public void setAnnSpawnLoc(boolean x)
- + {
- + _AnnSpawnLoc = x;
- + }
- + public boolean getAnnSpawnLoc()
- + {
- + return _AnnSpawnLoc;
- + }
- Index: AdminSpawn.java
- private static final String[] ADMIN_COMMANDS = { "admin_show_spawns", "admin_spawn", "admin_spawn_monster", "admin_spawn_index",
- "admin_unspawnall","admin_respawnall","admin_spawn_reload","admin_npc_index","admin_spawn_once",
- "admin_show_npcs","admin_teleport_reload","admin_spawnnight","admin_spawnday",
- - "admin_spawnfence","admin_deletefence","admin_listfence", "admin_deleteallfence" };
- + "admin_spawnfence","admin_deletefence","admin_listfence", "admin_deleteallfence", "admin_announcespawnloc" };
- @@
- else if (command.startsWith("admin_teleport_reload"))
- {
- TeleportLocationTable.getInstance().reloadAll();
- GmListTable.broadcastMessageToGMs("Teleport List Table reloaded.");
- }
- + else if (command.startsWith("admin_announcespawnloc"))
- + {
- + if (activeChar.getAnnSpawnLoc()) // already announce spawn location
- + {
- + activeChar.setAnnSpawnLoc(false);
- + activeChar.sendMessage("Your Message");
- + }
- + else
- + {
- + activeChar.setAnnSpawnLoc(true);
- + activeChar.sendMessage("Your Message");
- + }
- + }
- @@
- if (!permanent)
- spawn.stopRespawn();
- activeChar.sendMessage("Created " + template1.name + " on " + target.getObjectId());
- + if (activeChar.getAnnSpawnLoc())
- + Announcements.getInstance().announceToAll("GM:"+activeChar.getName()+" had spawn "+template1.name+ " in "+activeChar.getX()+" "+activeChar.getY()+" "+activeChar.getZ());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement