Fixed Mouse Movement for Wild Teleportation & Properly initialized tntfill aliases
This commit is contained in:
parent
591dc2172f
commit
8ff8c78a44
@ -26,7 +26,7 @@ public class CmdTntFill extends FCommand {
|
|||||||
|
|
||||||
public CmdTntFill() {
|
public CmdTntFill() {
|
||||||
super();
|
super();
|
||||||
this.aliases.add("tntfill");
|
this.aliases.addAll(Aliases.tnt_tntfill);
|
||||||
|
|
||||||
this.requiredArgs.add("radius");
|
this.requiredArgs.add("radius");
|
||||||
this.requiredArgs.add("amount");
|
this.requiredArgs.add("amount");
|
||||||
|
@ -920,6 +920,8 @@ public class FactionsPlayerListener implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onLogoutMove(PlayerMoveEvent e) {
|
public void onLogoutMove(PlayerMoveEvent e) {
|
||||||
LogoutHandler handler = LogoutHandler.getByName(e.getPlayer().getName());
|
LogoutHandler handler = LogoutHandler.getByName(e.getPlayer().getName());
|
||||||
@ -927,6 +929,12 @@ public class FactionsPlayerListener implements Listener {
|
|||||||
handler.cancelLogout(e.getPlayer());
|
handler.cancelLogout(e.getPlayer());
|
||||||
e.getPlayer().sendMessage(String.valueOf(TL.COMMAND_LOGOUT_MOVED));
|
e.getPlayer().sendMessage(String.valueOf(TL.COMMAND_LOGOUT_MOVED));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (e.getTo().getBlockX() == e.getFrom().getBlockX() &&
|
||||||
|
e.getTo().getBlockY() == e.getFrom().getBlockY() &&
|
||||||
|
e.getTo().getBlockZ() == e.getFrom().getBlockZ())
|
||||||
|
return;
|
||||||
|
|
||||||
if (CmdWild.waitingTeleport.containsKey(e.getPlayer())) {
|
if (CmdWild.waitingTeleport.containsKey(e.getPlayer())) {
|
||||||
CmdWild.waitingTeleport.remove(e.getPlayer());
|
CmdWild.waitingTeleport.remove(e.getPlayer());
|
||||||
FPlayers.getInstance().getByPlayer(e.getPlayer()).msg(TL.COMMAND_WILD_INTERUPTED);
|
FPlayers.getInstance().getByPlayer(e.getPlayer()).msg(TL.COMMAND_WILD_INTERUPTED);
|
||||||
|
Loading…
Reference in New Issue
Block a user