1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-19 13:01:20 +02:00
That's why switch statements are bad.
This commit is contained in:
Alexander Schepp
2012-12-16 13:59:25 +01:00
parent 314cd5a68b
commit a949ec475d

View File

@@ -62,6 +62,7 @@ public class Commandtp extends EssentialsCommand
target2.getTeleport().now(location, false, TeleportCause.COMMAND); target2.getTeleport().now(location, false, TeleportCause.COMMAND);
user.sendMessage(_("teleporting")); user.sendMessage(_("teleporting"));
target2.sendMessage(_("teleporting")); target2.sendMessage(_("teleporting"));
break;
case 2: case 2:
default: default:
if (!user.isAuthorized("essentials.tp.others")) if (!user.isAuthorized("essentials.tp.others"))