Bump please!
|
1. When I logout, it takes like 10 second to logout my player. How can I fix this ? I found no 10 second in my server with logout thing.
2. How can I make it so when a player is in Jail, he can't escape with a command who teleports you like :hop ?
Thanks.
Add this to your
/**
* Teleporting
**/
Code:public void startTeleport(int x, int y, int height, String teleportType) { if(c.isInJail()) { c.sendMessage("You cannot teleport out of jail!"); return; }
Please post your command for ::jail (or whatever it is) and the method that makes them teleport.
If it just changes the absx int, you may have to make a method to teleport.. such as..
Note: That () will not work, its just an example.Code:public void teleport(int x, int y, int z) { if(c.isInJail()) { return; } else { c.absx = x; c.absy = y; c.absz = z; } }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |