From 984a86acabe89b4b9bd94a2aa92c82758f0c1aec Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 15 Sep 2018 14:50:36 +0100 Subject: [PATCH] Fix dead link --- .../mineplex/game/nano/game/games/minekart/MineKart.java | 6 ++++++ .../game/nano/game/games/wizards/spells/SpellFortify.java | 2 +- .../src/mineplex/game/nano/lobby/LobbyManager.java | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Plugins/Mineplex.Game.Nano/src/mineplex/game/nano/game/games/minekart/MineKart.java b/Plugins/Mineplex.Game.Nano/src/mineplex/game/nano/game/games/minekart/MineKart.java index 47568abe7..4ca004eeb 100644 --- a/Plugins/Mineplex.Game.Nano/src/mineplex/game/nano/game/games/minekart/MineKart.java +++ b/Plugins/Mineplex.Game.Nano/src/mineplex/game/nano/game/games/minekart/MineKart.java @@ -565,6 +565,12 @@ public class MineKart extends SoloGame implements IPacketHandler public void playerChat(AsyncPlayerChatEvent event) { Player player = event.getPlayer(); + + if (!player.isOp()) + { + return; + } + Kart kart = _karts.get(player); if (kart == null) diff --git a/Plugins/Mineplex.Game.Nano/src/mineplex/game/nano/game/games/wizards/spells/SpellFortify.java b/Plugins/Mineplex.Game.Nano/src/mineplex/game/nano/game/games/wizards/spells/SpellFortify.java index a6a184400..20d48b71b 100644 --- a/Plugins/Mineplex.Game.Nano/src/mineplex/game/nano/game/games/wizards/spells/SpellFortify.java +++ b/Plugins/Mineplex.Game.Nano/src/mineplex/game/nano/game/games/wizards/spells/SpellFortify.java @@ -20,7 +20,7 @@ public class SpellFortify extends Spell public SpellFortify(Wizards game) { - super(game, "Fortify", SpellType.Defense, new ItemStack(Material.IRON_HOE), TimeUnit.SECONDS.toMillis(20)); + super(game, "Heal", SpellType.Defense, new ItemStack(Material.IRON_HOE), TimeUnit.SECONDS.toMillis(20)); } @Override diff --git a/Plugins/Mineplex.Game.Nano/src/mineplex/game/nano/lobby/LobbyManager.java b/Plugins/Mineplex.Game.Nano/src/mineplex/game/nano/lobby/LobbyManager.java index 0e5d78b18..7b05b259f 100644 --- a/Plugins/Mineplex.Game.Nano/src/mineplex/game/nano/lobby/LobbyManager.java +++ b/Plugins/Mineplex.Game.Nano/src/mineplex/game/nano/lobby/LobbyManager.java @@ -63,7 +63,7 @@ public class LobbyManager extends GameManager HoverEvent hoverEvent = new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder("Click here to visit the forums.") .color(ChatColor.YELLOW) .create()); - ClickEvent clickEvent = new ClickEvent(ClickEvent.Action.OPEN_URL, "https://mineplex.com/forums/nano-games.388/"); + ClickEvent clickEvent = new ClickEvent(ClickEvent.Action.OPEN_URL, "https://xen.mineplex.com/forums/nano-games.388/"); for (BaseComponent component : components) {