So I something in where you can't teleport home if your in the wild.
this is the code:
Code:
case 4171:
case 50056:
case 117048:
if (c.inWild())
return;
c.getPA().startTeleport(3012, 3364, 0, "modern");
break;
And it works with no errors, but I want it to send a message if you try tele out such as:
Code:
case 4171:
case 50056:
case 117048:
if (c.inWild())
c.sendMessage("You cannot use this teleport in wild!");
return;
c.getPA().startTeleport(3012, 3364, 0, "modern");
break;
But when I add that I get this:
Code:
src\server\model\players\packets\ClickingButtons.java:1160: unreachable statemen
t
c.getPA().startTeleport(3012, 3364, 0, "modern");
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
Press any key to continue . . .
Will rep for help.