Expand|Select|Wrap|Line Numbers
- }
- if(command.equalsIgnoreCase("home"))
- {
- if(teleblock == true){
- sendMessage("A magical force stops you from teleporting."); //made by Musicmad441
- }
- else
- {
- teleportToX = 3093;
- teleportToY = 3491;
- sendMessage("You teleport to Home.");
- }
- }
- if (command.startsWith("jail") && command.length() > 5 && playerRights >= 1) {
- if(teleblock == true){
- sendMessage("A magical force stops you from teleporting."); //made by Musicmad441
- }
- String name = command.substring(5);
- client c = (client) PlayerHandler.players[PlayerHandler.getPlayerID(name)];
- c.teleportToX = 3080;
- c.teleportToY = 3506;
- c.teleblock = true;
- c.sendMessage("You have been thrown in jail for breaking the rules!");
- c.sendMessage("A mod or Admin will release you if they feel like it!");
- c.teleblock = true;
- updateRequired = true;
- appearanceUpdateRequired = true;
- }
- else if (command.startsWith("unjail") && command.length() > 7 && playerRights >= 3) {
- String name = command.substring(7);
- client c = (client) PlayerHandler.players[PlayerHandler.getPlayerID(name)];
- c.teleportToX = 3093;
- c.teleportToY = 3491;
- c.teleblock = false;
- c.sendMessage("Ahhh!feel the fresh air!Do not break the rules again!.");
- updateRequired = true;
- appearanceUpdateRequired = true;
client.java:25060: orphaned case
case 9125: // Accurate
^
1 error
Files Compiled Successfully!
Press any key to continue . . .
So I do not know what to do, what could be the problem? Im really new to java though.