forked from Minecraft/QoL
fix issue where tps was getting caught in tp check
parent
97161694db
commit
85391029dc
|
@ -42,7 +42,7 @@ public class CommandPreprocessListener implements Listener {
|
||||||
boolean isTpCommand = false;
|
boolean isTpCommand = false;
|
||||||
|
|
||||||
//check if the command is a tp command
|
//check if the command is a tp command
|
||||||
if (noSlash(command).startsWith("tp") || noSlash(command).startsWith("teleport") || noSlash(command).startsWith("lagg tpchunk")) {
|
if (noSlash(base).equals("tp") || noSlash(base).equals("teleport") || noSlash(command).startsWith("lagg tpchunk")) {
|
||||||
//If the user is in the confirm tp map, remove them and let the command run
|
//If the user is in the confirm tp map, remove them and let the command run
|
||||||
if (command.equals(confirmTpMap.get(sender.getUniqueId()))) {
|
if (command.equals(confirmTpMap.get(sender.getUniqueId()))) {
|
||||||
confirmTpMap.remove(sender.getUniqueId());
|
confirmTpMap.remove(sender.getUniqueId());
|
||||||
|
|
Loading…
Reference in New Issue