Don't allow player-player teleports in tpto

This commit is contained in:
fullwall 2013-02-17 11:03:14 +08:00
parent 8c35992ac7
commit 70851c4bfd

View File

@ -1092,8 +1092,7 @@ public class NPCCommands {
} }
if (args.hasValueFlag("p1")) { if (args.hasValueFlag("p1")) {
from = Bukkit.getPlayerExact(args.getFlag("p1")); from = Bukkit.getPlayerExact(args.getFlag("p1"));
} } else if (args.hasValueFlag("p2")) {
if (args.hasValueFlag("p2")) {
to = Bukkit.getPlayerExact(args.getFlag("p2")); to = Bukkit.getPlayerExact(args.getFlag("p2"));
} }
if (from == null) if (from == null)