forked from Minecraft/QoL
renamed addDeathMute() to toggleDeathMute
parent
e9e43b84a7
commit
2cdc56c6e2
|
@ -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;
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue