mirror of
https://github.com/darksaid98/AlathranCommands.git
synced 2026-12-02 16:08:50 +00:00
Bug fixes
This commit is contained in:
1 parent
2f45cc5422
commit
69c06d46aa
3 files changed
+7
-9
No files matched your search
@@ -50,15 +50,14 @@ public class CommandTpa implements CommandExecutor, ConfigUtil {
|
||||
p.sendMessage(getMsg("Player-teleporting-self"));
|
||||
return true;
|
||||
}
|
||||
if (clicktpa.getTpaPlayers().get(target).getMode() == TeleportMode.TPTOGGLE_ON) {
|
||||
p.sendMessage(getMsg("Target-Is-TpToggled").replaceAll("%target%", target.getName()));
|
||||
return true;
|
||||
}
|
||||
|
||||
if (clicktpa.getTpaPlayers().get(p).getMode() == TeleportMode.TPTOGGLE_ON) {
|
||||
p.sendMessage(getMsg("Player-Is-TpToggled"));
|
||||
return true;
|
||||
}
|
||||
if (clicktpa.getTpaPlayers().get(target).getMode() == TeleportMode.TPTOGGLE_ON) {
|
||||
p.sendMessage(getMsg("Target-Is-TpToggled").replaceAll("%target%", target.getName()));
|
||||
return true;
|
||||
}
|
||||
|
||||
if (clicktpa.getTpaPlayers().get(p).getMode() == TeleportMode.DEFAULT) {
|
||||
|
||||
|
||||
@@ -50,17 +50,14 @@ public class CommandTpaHere implements CommandExecutor, ConfigUtil {
|
||||
p.sendMessage(getMsg("Player-teleporting-self"));
|
||||
return true;
|
||||
}
|
||||
|
||||
if (clicktpa.getTpaPlayers().get(p).getMode() == TeleportMode.TPTOGGLE_ON) {
|
||||
p.sendMessage(getMsg("Player-Is-TpToggled"));
|
||||
return true;
|
||||
}
|
||||
|
||||
if (clicktpa.getTpaPlayers().get(target).getMode() == TeleportMode.TPTOGGLE_ON) {
|
||||
p.sendMessage(getMsg("Target-Is-TpToggled").replaceAll("%target%", target.getName()));
|
||||
return true;
|
||||
}
|
||||
|
||||
if (clicktpa.getTpaPlayers().get(p).getMode() == TeleportMode.DEFAULT) {
|
||||
|
||||
for (TpaInfoList list : clicktpa.getTpaPlayers().get(target).getTpaList()) {
|
||||
@@ -83,7 +80,6 @@ public class CommandTpaHere implements CommandExecutor, ConfigUtil {
|
||||
//
|
||||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -112,6 +112,8 @@ public class TpaCountdownListener {
|
||||
cdTask = null;
|
||||
target.sendMessage(tpMsgs.getMsg("Target-teleportion-canceled"));
|
||||
clicktpa.getGraceList().remove(target);
|
||||
clicktpa.getTpaPlayers().get(target).setMode(TeleportMode.DEFAULT);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -120,6 +122,7 @@ public class TpaCountdownListener {
|
||||
cdTask = null;
|
||||
sender.sendMessage(tpMsgs.getMsg("Target-teleportion-canceled"));
|
||||
clicktpa.getGraceList().remove(sender);
|
||||
clicktpa.getTpaPlayers().get(sender).setMode(TeleportMode.DEFAULT);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user