renamed addDeathMute() to toggleDeathMute

master
Joey Hines 2018-10-30 13:39:53 -05:00
parent e9e43b84a7
commit 2cdc56c6e2
2 changed files with 2 additions and 2 deletions

View File

@ -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())) { if (!deathMutes.contains(player.getUniqueId())) {
deathMutes.add(player.getUniqueId()); deathMutes.add(player.getUniqueId());
return true; return true;

View File

@ -42,7 +42,7 @@ public class DeathMuteCommand implements CommandExecutor {
final Player player = argPlayer; final Player player = argPlayer;
if (QoL.addDeathMute(player)) { if (QoL.toggleDeathMute(player)) {
message = ChatColor.GREEN + "Muting death messages from " + ChatColor.YELLOW + player.getName(); message = ChatColor.GREEN + "Muting death messages from " + ChatColor.YELLOW + player.getName();
} else { } else {
message = ChatColor.GREEN + "Unmuting death messages from " + ChatColor.YELLOW + player.getName(); message = ChatColor.GREEN + "Unmuting death messages from " + ChatColor.YELLOW + player.getName();