2 options. either handle properly the bypass while it contains the location
E.x -> bypass -h cbTeleport 58132 -18354 -3300
the check should be like this
else if (_command.startsWith("cbTeleport"))
{
final StringTokenizer st = new StringTokenizer(_command);
st.nextToken();
if (st.countTokens() != 3)
return;
final Location loc = new Location(Integer.parseInt(st.nextToken()), Integer.parseInt(st.nextToken()), Integer.parseInt(st.nextToken()));
player.teleToLocation(loc, randomOffset);
}
or
handle specific bypasses
E.x -> bypass -h cbGoTo giran
the check should be like this
else if (_command.startsWith("cbGoTo"))
{
switch(_command.split(" ")[1])
{
case "giran":
player.teleToLocation(x, y, z, randomOffset);
break;
case "gludin":
player.teleToLocation(x, y, z, randomOffset);
break;
}
}