From d4904fa02a4da5e5723fce97e3d541d2809ae62f Mon Sep 17 00:00:00 2001 From: AlexTheCoder Date: Sat, 17 Dec 2016 00:50:47 -0500 Subject: [PATCH] Fix communities commands having incorrect coloring in their help messages --- .../core/communities/commands/CommunityChatCommand.java | 3 ++- .../core/communities/commands/CommunityCreateCommand.java | 3 ++- .../core/communities/commands/CommunityDescriptionCommand.java | 3 ++- .../core/communities/commands/CommunityDisbandCommand.java | 3 ++- .../core/communities/commands/CommunityInviteCommand.java | 3 ++- .../core/communities/commands/CommunityJoinCommand.java | 3 ++- .../core/communities/commands/CommunityMCSCommand.java | 3 ++- .../core/communities/commands/CommunityRenameCommand.java | 3 ++- .../core/communities/commands/CommunityUnInviteCommand.java | 3 ++- 9 files changed, 18 insertions(+), 9 deletions(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityChatCommand.java b/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityChatCommand.java index dacd37847..a1edba960 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityChatCommand.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityChatCommand.java @@ -1,5 +1,6 @@ package mineplex.core.communities.commands; +import org.bukkit.ChatColor; import org.bukkit.entity.Player; import mineplex.core.command.CommandBase; @@ -21,7 +22,7 @@ public class CommunityChatCommand extends CommandBase { if (args.length < 1) { - UtilPlayer.message(caller, F.help("/com chat ", "Selects which community you chat to", Rank.ALL)); + UtilPlayer.message(caller, F.help("/com chat ", "Selects which community you chat to", Rank.ALL, ChatColor.AQUA)); return; } Community c = Plugin.getLoadedCommunity(args[0]); diff --git a/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityCreateCommand.java b/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityCreateCommand.java index a55920071..35c545edc 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityCreateCommand.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityCreateCommand.java @@ -2,6 +2,7 @@ package mineplex.core.communities.commands; import java.util.Arrays; +import org.bukkit.ChatColor; import org.bukkit.entity.Player; import mineplex.core.Managers; @@ -25,7 +26,7 @@ public class CommunityCreateCommand extends CommandBase { if (args.length < 1) { - UtilPlayer.message(caller, F.help("/com create ", "Creates a new community", Rank.ETERNAL)); + UtilPlayer.message(caller, F.help("/com create ", "Creates a new community", Rank.ETERNAL, ChatColor.AQUA)); return; } Community c = Plugin.getLoadedCommunity(args[0]); diff --git a/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityDescriptionCommand.java b/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityDescriptionCommand.java index 46e1cba59..efaae74b2 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityDescriptionCommand.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityDescriptionCommand.java @@ -1,5 +1,6 @@ package mineplex.core.communities.commands; +import org.bukkit.ChatColor; import org.bukkit.entity.Player; import mineplex.core.Managers; @@ -27,7 +28,7 @@ public class CommunityDescriptionCommand extends CommandBase { if (args.length < 2) { - UtilPlayer.message(caller, F.help("/com description ", "Sets the description of a community you manage", Rank.ALL)); + UtilPlayer.message(caller, F.help("/com description ", "Sets the description of a community you manage", Rank.ALL, ChatColor.AQUA)); return; } Community c = Plugin.getLoadedCommunity(args[0]); diff --git a/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityDisbandCommand.java b/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityDisbandCommand.java index c65980363..a70b77542 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityDisbandCommand.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityDisbandCommand.java @@ -1,5 +1,6 @@ package mineplex.core.communities.commands; +import org.bukkit.ChatColor; import org.bukkit.entity.Player; import mineplex.core.Managers; @@ -25,7 +26,7 @@ public class CommunityDisbandCommand extends CommandBase { if (args.length < 1) { - UtilPlayer.message(caller, F.help("/com disband ", "Disbands a community you own", Rank.ETERNAL)); + UtilPlayer.message(caller, F.help("/com disband ", "Disbands a community you own", Rank.ETERNAL, ChatColor.AQUA)); return; } Community c = Plugin.getLoadedCommunity(args[0]); diff --git a/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityInviteCommand.java b/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityInviteCommand.java index 006ea58c5..f3b6e6b65 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityInviteCommand.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityInviteCommand.java @@ -1,5 +1,6 @@ package mineplex.core.communities.commands; +import org.bukkit.ChatColor; import org.bukkit.entity.Player; import mineplex.core.Managers; @@ -25,7 +26,7 @@ public class CommunityInviteCommand extends CommandBase { if (args.length < 2) { - UtilPlayer.message(caller, F.help("/com invite ", "Invites a player to a community you manage", Rank.ALL)); + UtilPlayer.message(caller, F.help("/com invite ", "Invites a player to a community you manage", Rank.ALL, ChatColor.AQUA)); return; } String player = args[0]; diff --git a/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityJoinCommand.java b/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityJoinCommand.java index 1e3f05845..202d73fc3 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityJoinCommand.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityJoinCommand.java @@ -1,5 +1,6 @@ package mineplex.core.communities.commands; +import org.bukkit.ChatColor; import org.bukkit.entity.Player; import mineplex.core.command.CommandBase; @@ -22,7 +23,7 @@ public class CommunityJoinCommand extends CommandBase { if (args.length < 1) { - UtilPlayer.message(caller, F.help("/com join ", "Joins a community that is open or you have been invited to", Rank.ALL)); + UtilPlayer.message(caller, F.help("/com join ", "Joins a community that is open or you have been invited to", Rank.ALL, ChatColor.AQUA)); return; } Community c = Plugin.getLoadedCommunity(args[0]); diff --git a/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityMCSCommand.java b/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityMCSCommand.java index c3f37d602..1e499c57f 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityMCSCommand.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityMCSCommand.java @@ -1,5 +1,6 @@ package mineplex.core.communities.commands; +import org.bukkit.ChatColor; import org.bukkit.entity.Player; import mineplex.core.Managers; @@ -26,7 +27,7 @@ public class CommunityMCSCommand extends CommandBase { if (args.length < 1) { - UtilPlayer.message(caller, F.help("/com mcs ", "Opens the Mineplex Community Server of a community you manage", Rank.ALL)); + UtilPlayer.message(caller, F.help("/com mcs ", "Opens the Mineplex Community Server of a community you manage", Rank.ALL, ChatColor.AQUA)); return; } Community c = Plugin.getLoadedCommunity(args[0]); diff --git a/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityRenameCommand.java b/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityRenameCommand.java index 270372ca2..bfa1863bf 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityRenameCommand.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityRenameCommand.java @@ -2,6 +2,7 @@ package mineplex.core.communities.commands; import java.util.Arrays; +import org.bukkit.ChatColor; import org.bukkit.entity.Player; import mineplex.core.Managers; @@ -28,7 +29,7 @@ public class CommunityRenameCommand extends CommandBase { if (args.length < 2) { - UtilPlayer.message(caller, F.help("/com rename ", "Changes the name of a community you own", Rank.ETERNAL)); + UtilPlayer.message(caller, F.help("/com rename ", "Changes the name of a community you own", Rank.ETERNAL, ChatColor.AQUA)); return; } Community c = Plugin.getLoadedCommunity(args[0]); diff --git a/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityUnInviteCommand.java b/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityUnInviteCommand.java index 03e05e649..99b5e9636 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityUnInviteCommand.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/communities/commands/CommunityUnInviteCommand.java @@ -1,5 +1,6 @@ package mineplex.core.communities.commands; +import org.bukkit.ChatColor; import org.bukkit.entity.Player; import mineplex.core.Managers; @@ -25,7 +26,7 @@ public class CommunityUnInviteCommand extends CommandBase { if (args.length < 2) { - UtilPlayer.message(caller, F.help("/com uninvite ", "Revokes a player's invitation to a community you manage", Rank.ALL)); + UtilPlayer.message(caller, F.help("/com uninvite ", "Revokes a player's invitation to a community you manage", Rank.ALL, ChatColor.AQUA)); return; } String player = args[0];