diff --git a/pom.xml b/pom.xml
index 83181a57..686c61d5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -75,6 +75,7 @@
4.13.1
[1.16,]
1.12-SNAPSHOT
+ 4.1.0-SNAPSHOT
@@ -129,6 +130,11 @@
${bungeecord-chat.version}
true
+
+ net.kyori
+ adventure-text-minimessage
+ ${adventure.version}
+
diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java
index 6326df78..0fba0663 100644
--- a/src/main/java/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java
+++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java
@@ -4,10 +4,7 @@ import com.comphenix.protocol.PacketType.Play.Server;
import com.comphenix.protocol.ProtocolLibrary;
import com.comphenix.protocol.events.PacketContainer;
import com.comphenix.protocol.reflect.StructureModifier;
-import com.comphenix.protocol.wrappers.ComponentConverter;
-import com.comphenix.protocol.wrappers.WrappedChatComponent;
-import com.comphenix.protocol.wrappers.WrappedDataWatcher;
-import com.comphenix.protocol.wrappers.WrappedWatchableObject;
+import com.comphenix.protocol.wrappers.*;
import com.google.common.base.Strings;
import com.mojang.datafixers.util.Pair;
import lombok.AccessLevel;
@@ -572,8 +569,15 @@ public class FlagWatcher {
}
if (NmsVersion.v1_13.isSupported()) {
- setData(MetaIndex.ENTITY_CUSTOM_NAME,
- Optional.of(WrappedChatComponent.fromJson(ComponentSerializer.toString(DisguiseUtilities.getColoredChat(name)))));
+ Optional optional;
+
+ if (DisguiseUtilities.hasAdventureTextSupport()) {
+ optional = Optional.of(AdventureComponentConverter.fromComponent(DisguiseUtilities.getAdventureChat(name)));
+ } else {
+ optional = Optional.of(WrappedChatComponent.fromJson(ComponentSerializer.toString(DisguiseUtilities.getColoredChat(name))));
+ }
+
+ setData(MetaIndex.ENTITY_CUSTOM_NAME, optional);
} else {
setData(MetaIndex.ENTITY_CUSTOM_NAME_OLD, name);
}
diff --git a/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java b/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java
index 2a5e90eb..c3fd964f 100644
--- a/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java
+++ b/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java
@@ -35,6 +35,9 @@ import me.libraryaddict.disguise.utilities.reflection.NmsVersion;
import me.libraryaddict.disguise.utilities.reflection.ReflectionManager;
import me.libraryaddict.disguise.utilities.translations.LibsMsg;
import me.libraryaddict.disguise.utilities.watchers.CompileMethods;
+import net.kyori.adventure.text.Component;
+import net.kyori.adventure.text.minimessage.MiniMessage;
+import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer;
import net.md_5.bungee.api.chat.BaseComponent;
import net.md_5.bungee.api.chat.ClickEvent;
import net.md_5.bungee.api.chat.TextComponent;
@@ -197,6 +200,7 @@ public class DisguiseUtilities {
private final static boolean java16;
private static boolean criedOverJava16;
private static HashSet warnedSkin = new HashSet<>();
+ private static Boolean adventureTextSupport;
static {
final Matcher matcher = Pattern.compile("(?:1\\.)?(\\d+)").matcher(System.getProperty("java.version"));
@@ -215,6 +219,19 @@ public class DisguiseUtilities {
}
}
+ public static boolean hasAdventureTextSupport() {
+ if (adventureTextSupport == null) {
+ try {
+ Class.forName("net.kyori.adventure.text.minimessage.MiniMessage");
+ adventureTextSupport = true;
+ } catch (ClassNotFoundException ex) {
+ adventureTextSupport = false;
+ }
+ }
+
+ return adventureTextSupport;
+ }
+
public static void doSkinUUIDWarning(CommandSender sender) {
if (!(sender instanceof Player)) {
return;
@@ -2421,16 +2438,16 @@ public class DisguiseUtilities {
}
public static void sendMessage(CommandSender sender, String message) {
+ if (message.isEmpty()) {
+ return;
+ }
+
if (!NmsVersion.v1_16.isSupported()) {
- if (!message.isEmpty()) {
- sender.sendMessage(message);
- }
+ sender.sendMessage(message);
} else {
BaseComponent[] components = getColoredChat(message);
- if (components.length > 0) {
- sender.spigot().sendMessage(components);
- }
+ sender.spigot().sendMessage(components);
}
}
@@ -2516,6 +2533,10 @@ public class DisguiseUtilities {
return ChatColor.translateAlternateColorCodes('&', string);
}
+ public static Component getAdventureChat(String message) {
+ return MiniMessage.get().parse(message);
+ }
+
/**
* Modification of TextComponent.fromLegacyText
*/
@@ -2524,6 +2545,10 @@ public class DisguiseUtilities {
return new BaseComponent[0];
}
+ if (hasAdventureTextSupport()) {
+ return ComponentSerializer.parse(GsonComponentSerializer.gson().serialize(getAdventureChat(message)));
+ }
+
ArrayList components = new ArrayList();
StringBuilder builder = new StringBuilder();
TextComponent component = new TextComponent();
diff --git a/src/main/java/me/libraryaddict/disguise/utilities/translations/LibsMsg.java b/src/main/java/me/libraryaddict/disguise/utilities/translations/LibsMsg.java
index 667bd300..9acaafcb 100644
--- a/src/main/java/me/libraryaddict/disguise/utilities/translations/LibsMsg.java
+++ b/src/main/java/me/libraryaddict/disguise/utilities/translations/LibsMsg.java
@@ -6,322 +6,319 @@ import org.apache.commons.lang.StringUtils;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
+import java.util.Locale;
+
/**
* Created by libraryaddict on 15/06/2017.
*/
public enum LibsMsg {
- NO_DISGUISES_IN_USE(ChatColor.RED + "There are no disguises in use!"),
- ACTIVE_DISGUISES_COUNT(ChatColor.DARK_GREEN + "There are %s disguises active"),
- ACTIVE_DISGUISES_DISGUISE(ChatColor.GREEN + "%s: " + ChatColor.AQUA + "%s"),
- ACTIVE_DISGUISES(ChatColor.DARK_GREEN + "The disguises in use are: %s"),
- ACTIVE_DISGUISES_SEPERATOR(ChatColor.RED + ", " + ChatColor.GREEN),
- BLOWN_DISGUISE(ChatColor.RED + "Your disguise was blown!"),
- EXPIRED_DISGUISE(ChatColor.RED + "Your disguise has expired!"),
- CAN_USE_DISGS(ChatColor.DARK_GREEN + "You can use the disguises:" + ChatColor.GREEN + " %s"),
- CAN_USE_DISGS_SEPERATOR(ChatColor.RED + ", " + ChatColor.GREEN),
- CANNOT_FIND_PLAYER(ChatColor.RED + "Cannot find the player/uuid '%s'"),
- CANNOT_FIND_PLAYER_NAME(ChatColor.RED + "Cannot find the player '%s'"),
- CANNOT_FIND_PLAYER_UUID(ChatColor.RED + "Cannot find the uuid '%s'"),
- CLICK_TIMER(ChatColor.RED + "Right click a entity in the next %s seconds to grab the disguise reference!"),
- CLONE_HELP1(ChatColor.DARK_GREEN + "Right click a entity to get a disguise reference you can pass to other disguise commands!"),
- CLONE_HELP2(ChatColor.DARK_GREEN + "Security note: Any references you create will be available to all players able to use disguise " + "references."),
- CLONE_HELP3(
- ChatColor.DARK_GREEN + "/disguiseclone IgnoreEquipment" + ChatColor.DARK_GREEN + "(" + ChatColor.GREEN + "Optional" + ChatColor.DARK_GREEN + ")"),
- CUSTOM_DISGUISE_SAVED(ChatColor.GOLD + "Custom disguise has been saved as '%s'!"),
- D_HELP1(ChatColor.DARK_GREEN + "Disguise another player!"),
- D_HELP3(ChatColor.DARK_GREEN + "/disguiseplayer player "),
- D_HELP4(ChatColor.DARK_GREEN + "/disguiseplayer "),
- D_HELP5(ChatColor.DARK_GREEN + "/disguiseplayer "),
- D_PARSE_NOPERM(ChatColor.RED + "You do not have permission to use the method %s"),
- DHELP_CANTFIND(ChatColor.RED + "Cannot find the disguise %s"),
- DHELP_HELP1(ChatColor.RED + "/disguisehelp " + ChatColor.GREEN +
- "- View the methods you can set on a disguise. Add 'show' to reveal the methods you don't have permission" + " to use"),
- DHELP_HELP2(ChatColor.RED + "/disguisehelp " + ChatColor.GREEN + "- View information about the " + "disguise values such as 'RabbitType'"),
- DHELP_HELP3(ChatColor.RED + "/disguisehelp " + ChatColor.DARK_GREEN + "%s" + ChatColor.GREEN + " - %s"),
- DHELP_HELP4(ChatColor.RED + "%s: " + ChatColor.GREEN + "%s"),
- DHELP_HELP4_SEPERATOR(ChatColor.RED + ", " + ChatColor.GREEN),
- DHELP_HELP5(ChatColor.RED + "%s: " + ChatColor.GREEN + "%s"),
- DHELP_HELP6(ChatColor.RED + "%s: " + ChatColor.DARK_GREEN + "%s " + ChatColor.GREEN + "%s"),
+ NO_DISGUISES_IN_USE("There are no disguises in use!"),
+ ACTIVE_DISGUISES_COUNT("There are %s disguises active"),
+ ACTIVE_DISGUISES_DISGUISE("%s: %s"),
+ ACTIVE_DISGUISES("The disguises in use are: %s"),
+ ACTIVE_DISGUISES_SEPERATOR(", "),
+ BLOWN_DISGUISE("Your disguise was blown!"),
+ EXPIRED_DISGUISE("Your disguise has expired!"),
+ CAN_USE_DISGS("You can use the disguises: %s"),
+ CAN_USE_DISGS_SEPERATOR(", "),
+ CANNOT_FIND_PLAYER("Cannot find the player/uuid '%s'"),
+ CANNOT_FIND_PLAYER_NAME("Cannot find the player '%s'"),
+ CANNOT_FIND_PLAYER_UUID("Cannot find the uuid '%s'"),
+ CLICK_TIMER("Right click a entity in the next %s seconds to grab the disguise reference!"),
+ CLONE_HELP1("Right click a entity to get a disguise reference you can pass to other disguise commands!"),
+ CLONE_HELP2("Security note: Any references you create will be available to all players able to use disguise references."),
+ CLONE_HELP3("/disguiseclone IgnoreEquipment(Optional)"),
+ CUSTOM_DISGUISE_SAVED("Custom disguise has been saved as '%s'!"),
+ D_HELP1("Disguise another player!"),
+ D_HELP3("/disguiseplayer player "),
+ D_HELP4("/disguiseplayer "),
+ D_HELP5("/disguiseplayer "),
+ D_PARSE_NOPERM("You do not have permission to use the method %s"),
+ DHELP_CANTFIND("Cannot find the disguise %s"),
+ DHELP_HELP1("/disguisehelp " +
+ "- View the methods you can set on a disguise. Add 'show' to reveal the methods you don't have permission to use"),
+ DHELP_HELP2("/disguisehelp - View information about the disguise values such as 'RabbitType'"),
+ DHELP_HELP3("/disguisehelp %s - %s"),
+ DHELP_HELP4("%s: %s"),
+ DHELP_HELP4_SEPERATOR(", "),
+ DHELP_HELP5("%s: %s"),
+ DHELP_HELP6("%s: %s %s"),
DHELP_OPTIONS("%s options: %s"),
- DISABLED_LIVING_TO_MISC(ChatColor.RED + "Can't disguise a living entity as a misc disguise. This has been disabled in the config!"),
- DISG_ENT_CLICK(ChatColor.RED + "Right click an entity in the next %s seconds to disguise it as a %s!"),
- DISG_ENT_HELP1(ChatColor.DARK_GREEN + "Choose a disguise then right click an entity to disguise it!"),
- DISG_ENT_HELP3(ChatColor.DARK_GREEN + "/disguiseentity player "),
- DISG_ENT_HELP4(ChatColor.DARK_GREEN + "/disguiseentity "),
- DISG_ENT_HELP5(ChatColor.DARK_GREEN + "/disguiseentity "),
- DISG_HELP1(ChatColor.DARK_GREEN + "Choose a disguise to become the disguise!"),
- DISG_HELP2(ChatColor.DARK_GREEN + "/disguise player "),
- DISG_HELP3(ChatColor.DARK_GREEN + "/disguise "),
- DISG_HELP4(ChatColor.DARK_GREEN + "/disguise "),
- DISG_PLAYER_AS_DISG(ChatColor.RED + "Successfully disguised %s as a %s!"),
- DISG_PLAYER_AS_DISG_FAIL(ChatColor.RED + "Failed to disguise %s as a %s!"),
- DISGUISED(ChatColor.RED + "Now disguised as %s"),
- DISRADIUS(ChatColor.RED + "Successfully disguised %s entities!"),
- DISRADIUS_FAIL(ChatColor.RED + "Couldn't find any entities to disguise!"),
- DMODENT_HELP1(ChatColor.DARK_GREEN + "Choose the options for a disguise then right click a entity to modify it!"),
- DMODIFY_HELP1(ChatColor.DARK_GREEN + "Modify your own disguise as you wear it!"),
- DMODIFY_HELP2(ChatColor.DARK_GREEN + "/disguisemodify setBaby true setSprinting true"),
- DMODIFY_HELP3(ChatColor.DARK_GREEN + "You can modify the disguises:" + ChatColor.GREEN + " %s"),
- DMODIFY_MODIFIED(ChatColor.RED + "Your disguise has been modified!"),
- DMODIFY_NO_PERM(ChatColor.RED + "No permission to modify your disguise!"),
- DMODIFYENT_CLICK(ChatColor.RED + "Right click a disguised entity in the next %s seconds to modify their disguise!"),
- DISGUISECOPY_INTERACT(ChatColor.RED + "Right click a disguised entity in the next %s seconds to copy their disguise!"),
- DMODPLAYER_HELP1(ChatColor.DARK_GREEN + "Modify the disguise of another player!"),
- DMODPLAYER_MODIFIED(ChatColor.RED + "Modified the disguise of %s!"),
- DMODPLAYER_NODISGUISE(ChatColor.RED + "The player '%s' is not disguised"),
- DMODPLAYER_NOPERM(ChatColor.RED + "You do not have permission to modify this disguise"),
- DMODRADIUS(ChatColor.RED + "Successfully modified the disguises of %s entities!"),
- DMODRADIUS_HELP1(ChatColor.DARK_GREEN + "Modify the disguises in a radius! Caps at %s blocks!"),
+ DISABLED_LIVING_TO_MISC("Can't disguise a living entity as a misc disguise. This has been disabled in the config!"),
+ DISG_ENT_CLICK("Right click an entity in the next %s seconds to disguise it as a %s!"),
+ DISG_ENT_HELP1("Choose a disguise then right click an entity to disguise it!"),
+ DISG_ENT_HELP3("/disguiseentity player "),
+ DISG_ENT_HELP4("/disguiseentity "),
+ DISG_ENT_HELP5("/disguiseentity "),
+ DISG_HELP1("Choose a disguise to become the disguise!"),
+ DISG_HELP2("/disguise player "),
+ DISG_HELP3("/disguise "),
+ DISG_HELP4("/disguise "),
+ DISG_PLAYER_AS_DISG("Successfully disguised %s as a %s!"),
+ DISG_PLAYER_AS_DISG_FAIL("Failed to disguise %s as a %s!"),
+ DISGUISED("Now disguised as %s"),
+ DISRADIUS("Successfully disguised %s entities!"),
+ DISRADIUS_FAIL("Couldn't find any entities to disguise!"),
+ DMODENT_HELP1("Choose the options for a disguise then right click a entity to modify it!"),
+ DMODIFY_HELP1("Modify your own disguise as you wear it!"),
+ DMODIFY_HELP2("/disguisemodify setBaby true setSprinting true"),
+ DMODIFY_HELP3("You can modify the disguises: %s"),
+ DMODIFY_MODIFIED("Your disguise has been modified!"),
+ DMODIFY_NO_PERM("No permission to modify your disguise!"),
+ DMODIFYENT_CLICK("Right click a disguised entity in the next %s seconds to modify their disguise!"),
+ DISGUISECOPY_INTERACT("Right click a disguised entity in the next %s seconds to copy their disguise!"),
+ DMODPLAYER_HELP1("Modify the disguise of another player!"),
+ DMODPLAYER_MODIFIED("Modified the disguise of %s!"),
+ DMODPLAYER_NODISGUISE("The player '%s' is not disguised"),
+ DMODPLAYER_NOPERM("You do not have permission to modify this disguise"),
+ DMODRADIUS("Successfully modified the disguises of %s entities!"),
+ DMODRADIUS_HELP1("Modify the disguises in a radius! Caps at %s blocks!"),
DHELP_SHOW("Show"),
- DHELP_NO_OPTIONS(ChatColor.RED + "No options with permission to use"),
+ DHELP_NO_OPTIONS("No options with permission to use"),
DCLONE_EQUIP("ignoreEquip"),
DCLONE_ADDEDANIMATIONS("doAddedAnimations"),
DMODRADIUS_HELP2(
- (ChatColor.DARK_GREEN + "/disguisemodifyradius ").replace("<", "<" + ChatColor.GREEN).replace(">", ChatColor.DARK_GREEN + ">")),
- DMODRADIUS_HELP3(ChatColor.DARK_GREEN + "See the DisguiseType's usable by " + ChatColor.GREEN + "/disguisemodifyradius DisguiseType"),
- DMODRADIUS_NEEDOPTIONS(ChatColor.RED + "You need to supply the disguise methods as well as the radius"),
- DMODRADIUS_NEEDOPTIONS_ENTITY(ChatColor.RED + "You need to supply the disguise methods as well as the radius and EntityType"),
- DMODRADIUS_NOENTS(ChatColor.RED + "Couldn't find any disguised entities!"),
- DMODRADIUS_NOPERM(ChatColor.RED + "No permission to modify %s disguises!"),
- DMODRADIUS_UNRECOGNIZED(ChatColor.RED + "Unrecognised DisguiseType %s"),
- DMODRADIUS_USABLE(ChatColor.DARK_GREEN + "DisguiseTypes usable are: %s" + ChatColor.DARK_GREEN + "."),
- DPLAYER_SUPPLY(ChatColor.RED + "You need to supply a disguise as well as the player/uuid"),
- DRADIUS_ENTITIES(ChatColor.DARK_GREEN + "EntityTypes usable are: %s"),
- DRADIUS_HELP1(ChatColor.DARK_GREEN + "Disguise all entities in a radius! Caps at %s blocks!"),
- DRADIUS_HELP3((ChatColor.DARK_GREEN + "/disguiseradius player ").replace("<", "<" + ChatColor.GREEN).replace(">", ChatColor.DARK_GREEN + ">")),
- DRADIUS_HELP4((ChatColor.DARK_GREEN + "/disguiseradius ")
- .replace("<", "<" + ChatColor.GREEN).replace(">", ChatColor.DARK_GREEN + ">")),
- DRADIUS_HELP5((ChatColor.DARK_GREEN + "/disguiseradius ").replace("<", "<" + ChatColor.GREEN).replace(">", ChatColor.DARK_GREEN + ">")),
- DRADIUS_HELP6(ChatColor.DARK_GREEN + "See the EntityType's usable by " + ChatColor.GREEN + "/disguiseradius EntityTypes"),
- DRADIUS_MISCDISG(ChatColor.RED + "Failed to disguise %s entities because the option to disguise a living entity as a non-living has been " +
- "disabled in the config"),
- DRADIUS_NEEDOPTIONS(ChatColor.RED + "You need to supply a disguise as well as the radius"),
- DRADIUS_NEEDOPTIONS_ENTITY(ChatColor.RED + "You need to supply a disguise as well as the radius and EntityType"),
- FAILED_DISGIUSE(ChatColor.RED + "Failed to disguise as %s"),
- GRABBED_SKIN(ChatColor.GOLD + "Grabbed skin and saved as %s!"),
- PLEASE_WAIT(ChatColor.GRAY + "Please wait..."),
- INVALID_CLONE(ChatColor.DARK_RED + "Unknown method '%s' - Valid methods are 'IgnoreEquipment' 'DoSneakSprint' " + "'DoSneak' 'DoSprint'"),
- LIBS_COMMAND_WRONG_ARG(ChatColor.RED + "[LibsDisguises] Invalid argument, use /libsdisguises help"),
- LIBS_UPDATE_UNKNOWN_BRANCH(ChatColor.RED + "[LibsDisguises] Invalid argument, use 'dev' or 'release' to switch branches"),
- LIMITED_RADIUS(ChatColor.RED + "Limited radius to %s! Don't want to make too much lag right?"),
- LISTEN_ENTITY_ENTITY_DISG_ENTITY(ChatColor.RED + "Disguised %s as a %s!"),
- LISTEN_ENTITY_ENTITY_DISG_ENTITY_FAIL(ChatColor.RED + "Failed to disguise %s as a %s!"),
- LISTEN_ENTITY_ENTITY_DISG_PLAYER(ChatColor.RED + "Disguised %s as the player %s!"),
- LISTEN_ENTITY_ENTITY_DISG_PLAYER_FAIL(ChatColor.RED + "Failed to disguise %s as the player %s!"),
- LISTEN_ENTITY_PLAYER_DISG_ENTITY(ChatColor.RED + "Disguised the player %s as a %s!"),
- LISTEN_ENTITY_PLAYER_DISG_ENTITY_FAIL(ChatColor.RED + "Failed to disguise the player %s as a %s!"),
- LISTEN_ENTITY_PLAYER_DISG_PLAYER(ChatColor.RED + "Disguised the player %s as the player %s!"),
- LISTEN_ENTITY_PLAYER_DISG_PLAYER_FAIL(ChatColor.RED + "Failed to disguise the player %s as the player %s!"),
- LISTEN_UNDISG_ENT(ChatColor.RED + "Undisguised the %s"),
- LISTEN_UNDISG_ENT_FAIL(ChatColor.RED + "%s isn't disguised!"),
- LISTEN_UNDISG_PLAYER(ChatColor.RED + "Undisguised %s"),
- LISTEN_UNDISG_PLAYER_FAIL(ChatColor.RED + "The %s isn't disguised!"),
- LISTENER_MODIFIED_DISG(ChatColor.RED + "Modified the disguise!"),
- MADE_REF(ChatColor.RED + "Constructed a %s disguise! Your reference is %s"),
- MADE_REF_EXAMPLE(ChatColor.RED + "Example usage: /disguise %s"),
- NO_CONSOLE(ChatColor.RED + "You may not use this command from the console!"),
- TOO_FAST(ChatColor.RED + "You are using the disguise command too fast!"),
- NO_MODS(ChatColor.RED + "%s is not using any mods!"),
- MODS_LIST(ChatColor.DARK_GREEN + "%s has the mods:" + ChatColor.AQUA + " %s"),
- NO_PERM(ChatColor.RED + "You are forbidden to use this command."),
- UPDATE_ON_LATEST(ChatColor.RED + "You are already on the latest version of LibsDisguises!"),
- UPDATE_ALREADY_DOWNLOADED(ChatColor.RED + "That update has already been downloaded!"),
- UPDATE_FAILED(ChatColor.RED + "LibsDisguises update failed! Check console for errors."),
- UPDATE_SUCCESS(ChatColor.DARK_GREEN + "LibsDisguises update success! Restart server to update!"),
- UPDATE_REQUIRED(ChatColor.RED + "LibsDisguises requies an update check before it can give you that!"),
- UPDATE_INFO(ChatColor.DARK_GREEN + "Lib's Disguises v%s, build %s, built %s and size %skb"),
- UPDATE_IN_PROGRESS(ChatColor.DARK_GREEN + "LibsDisguises is now downloading an update..."),
- NO_PERM_DISGUISE(ChatColor.RED + "You do not have permission for that disguise!"),
- NO_MODS_LISTENING(ChatColor.RED + "This server is not listening for mods!"),
- NO_PERMS_USE_OPTIONS(ChatColor.RED + "Ignored %s methods you do not have permission to use. Add 'show' to view unusable methods."),
- OWNED_BY(ChatColor.GOLD + "Plugin registered to '%%__USER__%%'!"),
- NOT_DISGUISED(ChatColor.RED + "You are not disguised!"),
- DISGUISE_REQUIRED(ChatColor.RED + "You must be disguised to run this command!"),
- TARGET_NOT_DISGUISED(ChatColor.RED + "That entity is not disguised!"),
- NOT_NUMBER(ChatColor.RED + "Error! %s is not a number"),
- PARSE_CANT_DISG_UNKNOWN(ChatColor.RED + "Error! You cannot disguise as " + ChatColor.GREEN + "Unknown!"),
- PARSE_CANT_LOAD(ChatColor.RED + "Error! This disguise couldn't be loaded!"),
- PARSE_DISG_NO_EXIST(ChatColor.RED + "Error! The disguise " + ChatColor.GREEN + "%s" + ChatColor.RED + " doesn't exist!"),
- PARSE_EXPECTED_RECEIVED(
- ChatColor.RED + "Expected " + ChatColor.GREEN + "%s" + ChatColor.RED + ", received " + ChatColor.GREEN + "%s" + ChatColor.RED + " instead for " +
- ChatColor.GREEN + "%s"),
- PARSE_PARTICLE_BLOCK(
- ChatColor.RED + "Expected " + ChatColor.GREEN + "%s:Material" + ChatColor.RED + ", received " + ChatColor.GREEN + "%s" + ChatColor.RED +
- " instead"),
- PARSE_PARTICLE_ITEM(ChatColor.RED + "Expected " + ChatColor.GREEN + "%s:Material,Amount?,Glow?" + ChatColor.RED + ", received " + ChatColor.GREEN + "%s" +
- ChatColor.RED + " instead"),
- PARSE_PARTICLE_REDSTONE(
- ChatColor.RED + "Expected " + ChatColor.GREEN + "%s:Color,Size.0?" + ChatColor.RED + ", received " + ChatColor.GREEN + "%s" + ChatColor.RED +
- " instead"),
+ "/disguisemodifyradius <DisguiseType(Optional)> <Radius> <Disguise " +
+ "Methods>"),
+ DMODRADIUS_HELP3("See the DisguiseType's usable by /disguisemodifyradius DisguiseType"),
+ DMODRADIUS_NEEDOPTIONS("You need to supply the disguise methods as well as the radius"),
+ DMODRADIUS_NEEDOPTIONS_ENTITY("You need to supply the disguise methods as well as the radius and EntityType"),
+ DMODRADIUS_NOENTS("Couldn't find any disguised entities!"),
+ DMODRADIUS_NOPERM("No permission to modify %s disguises!"),
+ DMODRADIUS_UNRECOGNIZED("Unrecognised DisguiseType %s"),
+ DMODRADIUS_USABLE("DisguiseTypes usable are: %s."),
+ DPLAYER_SUPPLY("You need to supply a disguise as well as the player/uuid"),
+ DRADIUS_ENTITIES("EntityTypes usable are: %s"),
+ DRADIUS_HELP1("Disguise all entities in a radius! Caps at %s blocks!"),
+ DRADIUS_HELP3("/disguiseradius <EntityType(Optional)> <Radius> player " +
+ "<Name>"),
+ DRADIUS_HELP4("/disguiseradius <EntityType(Optional)> <Radius> " +
+ "<DisguiseType> <Baby(Optional)>"),
+ DRADIUS_HELP5("/disguiseradius <EntityType(Optional)> <Radius> " +
+ "<Dropped_Item/Falling_Block> <Id> <Durability(Optional)" + ">"),
+ DRADIUS_HELP6("See the EntityType's usable by /disguiseradius EntityTypes"),
+ DRADIUS_MISCDISG("Failed to disguise %s entities because the option to disguise a living entity as a non-living has been disabled in the config"),
+ DRADIUS_NEEDOPTIONS("You need to supply a disguise as well as the radius"),
+ DRADIUS_NEEDOPTIONS_ENTITY("You need to supply a disguise as well as the radius and EntityType"),
+ FAILED_DISGIUSE("Failed to disguise as %s"),
+ GRABBED_SKIN("Grabbed skin and saved as %s!"),
+ PLEASE_WAIT("Please wait..."),
+ INVALID_CLONE("Unknown method '%s' - Valid methods are 'IgnoreEquipment' 'DoSneakSprint' 'DoSneak' 'DoSprint'"),
+ LIBS_COMMAND_WRONG_ARG("[LibsDisguises] Invalid argument, use /libsdisguises help"),
+ LIBS_UPDATE_UNKNOWN_BRANCH("[LibsDisguises] Invalid argument, use 'dev' or 'release' to switch branches"),
+ LIMITED_RADIUS("Limited radius to %s! Don't want to make too much lag right?"),
+ LISTEN_ENTITY_ENTITY_DISG_ENTITY("Disguised %s as a %s!"),
+ LISTEN_ENTITY_ENTITY_DISG_ENTITY_FAIL("Failed to disguise %s as a %s!"),
+ LISTEN_ENTITY_ENTITY_DISG_PLAYER("Disguised %s as the player %s!"),
+ LISTEN_ENTITY_ENTITY_DISG_PLAYER_FAIL("Failed to disguise %s as the player %s!"),
+ LISTEN_ENTITY_PLAYER_DISG_ENTITY("Disguised the player %s as a %s!"),
+ LISTEN_ENTITY_PLAYER_DISG_ENTITY_FAIL("Failed to disguise the player %s as a %s!"),
+ LISTEN_ENTITY_PLAYER_DISG_PLAYER("Disguised the player %s as the player %s!"),
+ LISTEN_ENTITY_PLAYER_DISG_PLAYER_FAIL("Failed to disguise the player %s as the player %s!"),
+ LISTEN_UNDISG_ENT("Undisguised the %s"),
+ LISTEN_UNDISG_ENT_FAIL("%s isn't disguised!"),
+ LISTEN_UNDISG_PLAYER("Undisguised %s"),
+ LISTEN_UNDISG_PLAYER_FAIL("The %s isn't disguised!"),
+ LISTENER_MODIFIED_DISG("Modified the disguise!"),
+ MADE_REF("Constructed a %s disguise! Your reference is %s"),
+ MADE_REF_EXAMPLE("Example usage: /disguise %s"),
+ NO_CONSOLE("You may not use this command from the console!"),
+ TOO_FAST("You are using the disguise command too fast!"),
+ NO_MODS("%s is not using any mods!"),
+ MODS_LIST("%s has the mods: %s"),
+ NO_PERM("You are forbidden to use this command."),
+ UPDATE_ON_LATEST("You are already on the latest version of LibsDisguises!"),
+ UPDATE_ALREADY_DOWNLOADED("That update has already been downloaded!"),
+ UPDATE_FAILED("LibsDisguises update failed! Check console for errors."),
+ UPDATE_SUCCESS("LibsDisguises update success! Restart server to update!"),
+ UPDATE_REQUIRED("LibsDisguises requies an update check before it can give you that!"),
+ UPDATE_INFO("Lib's Disguises v%s, build %s, built %s and size %skb"),
+ UPDATE_IN_PROGRESS("LibsDisguises is now downloading an update..."),
+ NO_PERM_DISGUISE("You do not have permission for that disguise!"),
+ NO_MODS_LISTENING("This server is not listening for mods!"),
+ NO_PERMS_USE_OPTIONS("Ignored %s methods you do not have permission to use. Add 'show' to view unusable methods."),
+ OWNED_BY("Plugin registered to '%%__USER__%%'!"),
+ NOT_DISGUISED("You are not disguised!"),
+ DISGUISE_REQUIRED("You must be disguised to run this command!"),
+ TARGET_NOT_DISGUISED("That entity is not disguised!"),
+ NOT_NUMBER("Error! %s is not a number"),
+ PARSE_CANT_DISG_UNKNOWN("Error! You cannot disguise as Unknown!"),
+ PARSE_CANT_LOAD("Error! This disguise couldn't be loaded!"),
+ PARSE_DISG_NO_EXIST("Error! The disguise %s doesn't exist!"),
+ PARSE_EXPECTED_RECEIVED("