diff --git a/src/main/java/me/lrxh/practice/leaderboards/LeaderboardsMenu.java b/src/main/java/me/lrxh/practice/leaderboards/LeaderboardsMenu.java index 00023d9..d8f7a71 100644 --- a/src/main/java/me/lrxh/practice/leaderboards/LeaderboardsMenu.java +++ b/src/main/java/me/lrxh/practice/leaderboards/LeaderboardsMenu.java @@ -103,8 +103,6 @@ public ItemStack getButtonItem(Player player) { .replace("", String.valueOf(playerElo.getElo())) .replace("", playerElo.getPlayerName())); } - lore.add(""); - lore.add(CC.translate("&aUpdating in " + TimeUtil.millisToTimer(Leaderboard.getRefreshTime())) + " minutes"); return new ItemBuilder(queue.getKit().getDisplayIcon()) .name(Practice.getInstance().getMenusConfig().getString("LEADERBOARD.KIT-NAME") .replace("", queue.getKit().getName())) diff --git a/src/main/java/me/lrxh/practice/profile/ProfileListener.java b/src/main/java/me/lrxh/practice/profile/ProfileListener.java index d52ae63..a433ee8 100644 --- a/src/main/java/me/lrxh/practice/profile/ProfileListener.java +++ b/src/main/java/me/lrxh/practice/profile/ProfileListener.java @@ -46,7 +46,6 @@ public void onSpawnTeleportEvent(SpawnTeleportEvent event) { public void onPlayerCommand(PlayerCommandPreprocessEvent event) { Player player = event.getPlayer(); String command = event.getMessage().split(" ")[0].substring(1); - if (command.equalsIgnoreCase("msg")) return; if (command.equalsIgnoreCase("reply")) return; if (command.equalsIgnoreCase("r")) return; diff --git a/src/main/java/me/lrxh/practice/profile/visibility/VisibilityLogic.java b/src/main/java/me/lrxh/practice/profile/visibility/VisibilityLogic.java index df558dd..2daacd8 100644 --- a/src/main/java/me/lrxh/practice/profile/visibility/VisibilityLogic.java +++ b/src/main/java/me/lrxh/practice/profile/visibility/VisibilityLogic.java @@ -1,9 +1,11 @@ package me.lrxh.practice.profile.visibility; +import me.lrxh.practice.Practice; import me.lrxh.practice.match.participant.MatchGamePlayer; import me.lrxh.practice.profile.Profile; import me.lrxh.practice.profile.ProfileState; import me.lrxh.practice.util.CC; +import me.lrxh.practice.util.PlayerUtil; import org.apache.commons.lang.StringEscapeUtils; import org.bukkit.Bukkit; import org.bukkit.entity.Player; @@ -86,5 +88,14 @@ public static void handle(Player viewer, Player target) { viewer.hidePlayer(target); } } + if (Practice.getInstance().isReplay()) { + if(PlayerUtil.inReplay(target) || PlayerUtil.inReplay(viewer)){ + viewer.hidePlayer(target); + target.hidePlayer(viewer); + } else { + viewer.showPlayer(target); + target.showPlayer(viewer); + } + } } }