mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-24 03:25:13 +01:00
Don't allow player-player teleports in tpto
This commit is contained in:
parent
8c35992ac7
commit
70851c4bfd
@ -1092,8 +1092,7 @@ public class NPCCommands {
|
||||
}
|
||||
if (args.hasValueFlag("p1")) {
|
||||
from = Bukkit.getPlayerExact(args.getFlag("p1"));
|
||||
}
|
||||
if (args.hasValueFlag("p2")) {
|
||||
} else if (args.hasValueFlag("p2")) {
|
||||
to = Bukkit.getPlayerExact(args.getFlag("p2"));
|
||||
}
|
||||
if (from == null)
|
||||
|
Loading…
Reference in New Issue
Block a user