From 2cdc56c6e293455daf196c384c0a7e3dabc39cac Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Tue, 30 Oct 2018 13:39:53 -0500 Subject: [PATCH] renamed addDeathMute() to toggleDeathMute --- src/main/java/xyz/etztech/qol/QoL.java | 2 +- src/main/java/xyz/etztech/qol/commands/DeathMuteCommand.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/xyz/etztech/qol/QoL.java b/src/main/java/xyz/etztech/qol/QoL.java index bc88a4d..48507c4 100644 --- a/src/main/java/xyz/etztech/qol/QoL.java +++ b/src/main/java/xyz/etztech/qol/QoL.java @@ -220,7 +220,7 @@ public class QoL extends JavaPlugin { } } - public static boolean addDeathMute(Player player) { + public static boolean toggleDeathMute(Player player) { if (!deathMutes.contains(player.getUniqueId())) { deathMutes.add(player.getUniqueId()); return true; diff --git a/src/main/java/xyz/etztech/qol/commands/DeathMuteCommand.java b/src/main/java/xyz/etztech/qol/commands/DeathMuteCommand.java index 49c9926..add16b2 100644 --- a/src/main/java/xyz/etztech/qol/commands/DeathMuteCommand.java +++ b/src/main/java/xyz/etztech/qol/commands/DeathMuteCommand.java @@ -42,7 +42,7 @@ public class DeathMuteCommand implements CommandExecutor { final Player player = argPlayer; - if (QoL.addDeathMute(player)) { + if (QoL.toggleDeathMute(player)) { message = ChatColor.GREEN + "Muting death messages from " + ChatColor.YELLOW + player.getName(); } else { message = ChatColor.GREEN + "Unmuting death messages from " + ChatColor.YELLOW + player.getName();