From 136a6a46a037c26809559e8dfc7fc29dc61ca199 Mon Sep 17 00:00:00 2001 From: Yaruma3341 Date: Sat, 13 Apr 2019 23:22:33 +0200 Subject: [PATCH] hotfix Signed-off-by: Yaruma3341 --- src/me/yaruma/fightsystem/commands/AkCommand.java | 2 +- src/me/yaruma/fightsystem/listener/PlayerJoinListener.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/me/yaruma/fightsystem/commands/AkCommand.java b/src/me/yaruma/fightsystem/commands/AkCommand.java index 91c51d4..bde5de8 100644 --- a/src/me/yaruma/fightsystem/commands/AkCommand.java +++ b/src/me/yaruma/fightsystem/commands/AkCommand.java @@ -174,7 +174,7 @@ public class AkCommand implements CommandExecutor { if(fightTeam != null) { if(fightTeam.getFightPlayer(player).isLeader()) { if(args[0].equalsIgnoreCase("public")) { - Fight.getPlayerTeam(player).sendPlayerSchematicList(false, Integer.parseInt(args[1]), 15, player, Config.SchematicType); + Fight.getPlayerTeam(player).sendPlayerSchematicList(false, 0, 15, player, Config.SchematicType); return false; } else { int page; diff --git a/src/me/yaruma/fightsystem/listener/PlayerJoinListener.java b/src/me/yaruma/fightsystem/listener/PlayerJoinListener.java index 4b46c68..3c08b53 100644 --- a/src/me/yaruma/fightsystem/listener/PlayerJoinListener.java +++ b/src/me/yaruma/fightsystem/listener/PlayerJoinListener.java @@ -42,13 +42,13 @@ public class PlayerJoinListener implements Listener { if (fightTeam == null) { //TEXT COMPONENTS - TextComponent publicList = new TextComponent("public"); + TextComponent publicList = new TextComponent("PUBLIC"); publicList.setColor(ChatColor.GOLD); publicList.setBold(true); publicList.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder("§ePublic Liste...").create())); publicList.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/ak schemlist public")); - TextComponent privateList = new TextComponent("private"); + TextComponent privateList = new TextComponent("PRIVATE"); privateList.setColor(ChatColor.GOLD); privateList.setBold(true); privateList.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder("§ePrivate Liste...").create()));