From 75da549f25cdae06c9277c2894d8cd9b9973afd3 Mon Sep 17 00:00:00 2001 From: asofold Date: Fri, 21 Mar 2014 22:17:37 +0100 Subject: [PATCH] Use the preset TAG for some commands. --- .../nocheatplus/command/admin/notify/NotifyOffCommand.java | 2 +- .../nocheatplus/command/admin/notify/NotifyOnCommand.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/admin/notify/NotifyOffCommand.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/admin/notify/NotifyOffCommand.java index 79792314..688568b6 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/admin/notify/NotifyOffCommand.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/admin/notify/NotifyOffCommand.java @@ -29,7 +29,7 @@ public class NotifyOffCommand extends BaseCommand { return true; } DataManager.getPlayerData(sender.getName(), true).setNotifyOff(true); - sender.sendMessage(ChatColor.RED + "NCP: " + ChatColor.WHITE + "Notifications are now turned " + ChatColor.RED + "off" + ChatColor.WHITE + "."); + sender.sendMessage(TAG + "Notifications are now turned " + ChatColor.RED + "off" + ChatColor.WHITE + "."); return true; } diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/admin/notify/NotifyOnCommand.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/admin/notify/NotifyOnCommand.java index 98b73dec..7648ac76 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/admin/notify/NotifyOnCommand.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/admin/notify/NotifyOnCommand.java @@ -29,7 +29,7 @@ public class NotifyOnCommand extends BaseCommand { return true; } DataManager.getPlayerData(sender.getName(), true).setNotifyOff(false); - sender.sendMessage(ChatColor.RED + "NCP: " + ChatColor.WHITE + "Notifications are now turned " + ChatColor.YELLOW + "on" + ChatColor.WHITE + "."); + sender.sendMessage(TAG + "Notifications are now turned " + ChatColor.YELLOW + "on" + ChatColor.WHITE + "."); return true; }