This is a snippet![]()
|
|

Go into client.java And search for:
And replace that code with this:Code:"Xteleall"
If you cant find:Code:if (command.equals("xteleall") && playerRights >= 3) { for (Player p : server.playerHandler.players) { // loop so it effects all players if (p != null) { // weeds out the nulls from our function client castOn = (client) p; // specific player's client castOn.teleportToX = absX; // replace with your tele X coord castOn.teleportToY = absY; // replace with your tele Y coord } } }
Search forCode:"Xteleall"
And under that command add the codeCode:"home"


People doin jad get teled
Yeah they do then they'll flame and you'll lose players
Then just stop it from doing that?
Something like thatCode:if (command.equals("xteleall") && playerRights >= 3) { for (Player p : server.playerHandler.players) { // loop so it effects all players if (p != null) { // weeds out the nulls from our function client castOn = (client) p; // specific player's client if(!p.isInFightCaves() || !p.sInPitGame()){ castOn.teleportToX = absX; // replace with your tele X coord castOn.teleportToY = absY; // replace with your tele Y coord } } } }
| « Welcome Message Using Arrays | Loading Mods/Admins from file » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |