2019-01-03 15:13:03 +13:00
package me.libraryaddict.disguise.utilities.translations ;
2017-06-20 05:06:35 +12:00
2019-01-03 15:13:03 +13:00
import me.libraryaddict.disguise.utilities.DisguiseUtilities ;
2020-06-27 21:01:58 +12:00
import net.md_5.bungee.api.chat.BaseComponent ;
2019-05-18 18:54:51 +12:00
import org.apache.commons.lang.StringUtils ;
2017-06-20 05:06:35 +12:00
import org.bukkit.ChatColor ;
2020-07-04 00:44:22 +12:00
import org.bukkit.command.CommandSender ;
2017-06-20 05:06:35 +12:00
/ * *
* Created by libraryaddict on 15 / 06 / 2017 .
* /
public enum LibsMsg {
2020-04-20 17:58:05 +12:00
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 ) ,
2017-06-20 05:44:31 +12:00
BLOWN_DISGUISE ( ChatColor . RED + " Your disguise was blown! " ) ,
2019-03-06 15:16:14 +13:00
EXPIRED_DISGUISE ( ChatColor . RED + " Your disguise has expired! " ) ,
2020-04-20 15:17:11 +12:00
CAN_USE_DISGS ( ChatColor . DARK_GREEN + " You can use the disguises: " + ChatColor . GREEN + " %s " ) ,
2020-08-13 11:51:32 +12:00
CAN_USE_DISGS_SEPERATOR ( ChatColor . RED + " , " + ChatColor . GREEN ) ,
2017-10-07 15:12:55 +13:00
CANNOT_FIND_PLAYER ( ChatColor . RED + " Cannot find the player/uuid '%s' " ) ,
2020-01-02 17:10:36 +13:00
CANNOT_FIND_PLAYER_NAME ( ChatColor . RED + " Cannot find the player '%s' " ) ,
CANNOT_FIND_PLAYER_UUID ( ChatColor . RED + " Cannot find the uuid '%s' " ) ,
2017-06-20 05:44:31 +12:00
CLICK_TIMER ( ChatColor . RED + " Right click a entity in the next %s seconds to grab the disguise reference! " ) ,
2021-05-23 10:11:03 +12:00
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 + " ) " ) ,
2020-01-02 17:10:36 +13:00
CUSTOM_DISGUISE_SAVED ( ChatColor . GOLD + " Custom disguise has been saved as '%s'! " ) ,
2017-06-20 05:44:31 +12:00
D_HELP1 ( ChatColor . DARK_GREEN + " Disguise another player! " ) ,
D_HELP3 ( ChatColor . DARK_GREEN + " /disguiseplayer <PlayerName> player <Name> " ) ,
D_HELP4 ( ChatColor . DARK_GREEN + " /disguiseplayer <PlayerName> <DisguiseType> <Baby> " ) ,
D_HELP5 ( ChatColor . DARK_GREEN + " /disguiseplayer <PlayerName> <Dropped_Item/Falling_Block> <Id> <Durability> " ) ,
2020-04-04 19:58:21 +13:00
D_PARSE_NOPERM ( ChatColor . RED + " You do not have permission to use the method %s " ) ,
2017-06-20 05:06:35 +12:00
DHELP_CANTFIND ( ChatColor . RED + " Cannot find the disguise %s " ) ,
2018-07-12 06:05:36 +12:00
DHELP_HELP1 ( ChatColor . RED + " /disguisehelp <DisguiseType> " + ChatColor . GREEN +
2021-05-23 10:11:03 +12:00
" - 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 <DisguiseOption> " + ChatColor . GREEN + " - View information about the " + " disguise values such as 'RabbitType' " ) ,
2018-09-07 14:35:38 +12:00
DHELP_HELP3 ( ChatColor . RED + " /disguisehelp " + ChatColor . DARK_GREEN + " %s " + ChatColor . GREEN + " - %s " ) ,
2018-07-12 06:05:36 +12:00
DHELP_HELP4 ( ChatColor . RED + " %s: " + ChatColor . GREEN + " %s " ) ,
DHELP_HELP4_SEPERATOR ( ChatColor . RED + " , " + ChatColor . GREEN ) ,
DHELP_HELP5 ( ChatColor . RED + " %s: " + ChatColor . GREEN + " %s " ) ,
2018-09-07 14:35:38 +12:00
DHELP_HELP6 ( ChatColor . RED + " %s: " + ChatColor . DARK_GREEN + " %s " + ChatColor . GREEN + " %s " ) ,
2017-06-20 05:44:31 +12:00
DHELP_OPTIONS ( " %s options: %s " ) ,
2021-05-23 10:11:03 +12:00
DISABLED_LIVING_TO_MISC ( ChatColor . RED + " Can't disguise a living entity as a misc disguise. This has been disabled in the config! " ) ,
2017-06-20 05:44:31 +12:00
DISG_ENT_CLICK ( ChatColor . RED + " Right click an entity in the next %s seconds to disguise it as a %s! " ) ,
2017-06-20 05:06:35 +12:00
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 <Name> " ) ,
DISG_ENT_HELP4 ( ChatColor . DARK_GREEN + " /disguiseentity <DisguiseType> <Baby> " ) ,
2017-06-20 05:19:46 +12:00
DISG_ENT_HELP5 ( ChatColor . DARK_GREEN + " /disguiseentity <Dropped_Item/Falling_Block> <Id> <Durability> " ) ,
2017-06-20 05:06:35 +12:00
DISG_HELP1 ( ChatColor . DARK_GREEN + " Choose a disguise to become the disguise! " ) ,
2017-06-20 05:44:31 +12:00
DISG_HELP2 ( ChatColor . DARK_GREEN + " /disguise player <Name> " ) ,
DISG_HELP3 ( ChatColor . DARK_GREEN + " /disguise <DisguiseType> <Baby> " ) ,
DISG_HELP4 ( ChatColor . DARK_GREEN + " /disguise <Dropped_Item/Falling_Block> <Id> <Durability> " ) ,
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! " ) ,
2020-05-07 21:27:07 +12:00
DISGUISED ( ChatColor . RED + " Now disguised as %s " ) ,
2017-06-20 05:44:31 +12:00
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! " ) ,
2017-06-20 05:19:46 +12:00
DMODIFY_HELP1 ( ChatColor . DARK_GREEN + " Modify your own disguise as you wear it! " ) ,
2017-06-20 05:06:35 +12:00
DMODIFY_HELP2 ( ChatColor . DARK_GREEN + " /disguisemodify setBaby true setSprinting true " ) ,
2020-04-20 15:17:11 +12:00
DMODIFY_HELP3 ( ChatColor . DARK_GREEN + " You can modify the disguises: " + ChatColor . GREEN + " %s " ) ,
2017-06-20 05:44:31 +12:00
DMODIFY_MODIFIED ( ChatColor . RED + " Your disguise has been modified! " ) ,
DMODIFY_NO_PERM ( ChatColor . RED + " No permission to modify your disguise! " ) ,
2017-06-20 05:19:46 +12:00
DMODIFYENT_CLICK ( ChatColor . RED + " Right click a disguised entity in the next %s seconds to modify their disguise! " ) ,
2021-05-23 10:11:03 +12:00
DISGUISECOPY_INTERACT ( ChatColor . RED + " Right click a disguised entity in the next %s seconds to copy their disguise! " ) ,
2017-06-20 05:44:31 +12:00
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! " ) ,
2017-06-22 07:20:12 +12:00
DHELP_SHOW ( " Show " ) ,
DHELP_NO_OPTIONS ( ChatColor . RED + " No options with permission to use " ) ,
DCLONE_EQUIP ( " ignoreEquip " ) ,
2021-04-21 10:56:50 +12:00
DCLONE_ADDEDANIMATIONS ( " doAddedAnimations " ) ,
2021-05-23 10:11:03 +12:00
DMODRADIUS_HELP2 (
( ChatColor . DARK_GREEN + " /disguisemodifyradius <DisguiseType " + ChatColor . DARK_GREEN + " ( " + ChatColor . GREEN + " Optional " + ChatColor . DARK_GREEN +
" )> <Radius> <Disguise Methods> " ) . replace ( " < " , " < " + ChatColor . GREEN ) . replace ( " > " , ChatColor . DARK_GREEN + " > " ) ) ,
DMODRADIUS_HELP3 ( ChatColor . DARK_GREEN + " See the DisguiseType's usable by " + ChatColor . GREEN + " /disguisemodifyradius DisguiseType " ) ,
2020-04-04 19:58:21 +13:00
DMODRADIUS_NEEDOPTIONS ( ChatColor . RED + " You need to supply the disguise methods as well as the radius " ) ,
2021-05-23 10:11:03 +12:00
DMODRADIUS_NEEDOPTIONS_ENTITY ( ChatColor . RED + " You need to supply the disguise methods as well as the radius and EntityType " ) ,
2017-06-20 05:44:31 +12:00
DMODRADIUS_NOENTS ( ChatColor . RED + " Couldn't find any disguised entities! " ) ,
DMODRADIUS_NOPERM ( ChatColor . RED + " No permission to modify %s disguises! " ) ,
2017-06-26 11:55:45 +12:00
DMODRADIUS_UNRECOGNIZED ( ChatColor . RED + " Unrecognised DisguiseType %s " ) ,
DMODRADIUS_USABLE ( ChatColor . DARK_GREEN + " DisguiseTypes usable are: %s " + ChatColor . DARK_GREEN + " . " ) ,
2017-10-07 15:12:55 +13:00
DPLAYER_SUPPLY ( ChatColor . RED + " You need to supply a disguise as well as the player/uuid " ) ,
2017-06-20 05:44:31 +12:00
DRADIUS_ENTITIES ( ChatColor . DARK_GREEN + " EntityTypes usable are: %s " ) ,
DRADIUS_HELP1 ( ChatColor . DARK_GREEN + " Disguise all entities in a radius! Caps at %s blocks! " ) ,
2021-05-23 10:11:03 +12:00
DRADIUS_HELP3 ( ( ChatColor . DARK_GREEN + " /disguiseradius <EntityType " + ChatColor . DARK_GREEN + " ( " + ChatColor . GREEN + " Optional " + ChatColor . DARK_GREEN +
" )> <Radius> player <Name> " ) . replace ( " < " , " < " + ChatColor . GREEN ) . replace ( " > " , ChatColor . DARK_GREEN + " > " ) ) ,
DRADIUS_HELP4 ( ( ChatColor . DARK_GREEN + " /disguiseradius <EntityType " + ChatColor . DARK_GREEN + " ( " + ChatColor . GREEN + " Optional " + ChatColor . DARK_GREEN +
" )> <Radius> <DisguiseType> <Baby " + ChatColor . DARK_GREEN + " ( " + ChatColor . GREEN + " Optional " + ChatColor . DARK_GREEN + " )> " )
2018-07-12 06:05:36 +12:00
. replace ( " < " , " < " + ChatColor . GREEN ) . replace ( " > " , ChatColor . DARK_GREEN + " > " ) ) ,
2021-05-23 10:11:03 +12:00
DRADIUS_HELP5 ( ( ChatColor . DARK_GREEN + " /disguiseradius <EntityType " + ChatColor . DARK_GREEN + " ( " + ChatColor . GREEN + " Optional " + ChatColor . DARK_GREEN +
" )> <Radius> <Dropped_Item/Falling_Block> <Id> <Durability " + ChatColor . DARK_GREEN + " ( " + ChatColor . GREEN + " Optional " + ChatColor . DARK_GREEN +
" )> " ) . 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 " +
2018-07-12 06:05:36 +12:00
" disabled in the config " ) ,
2017-06-20 05:06:35 +12:00
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 " ) ,
2020-05-07 21:27:07 +12:00
FAILED_DISGIUSE ( ChatColor . RED + " Failed to disguise as %s " ) ,
2020-01-02 17:10:36 +13:00
GRABBED_SKIN ( ChatColor . GOLD + " Grabbed skin and saved as %s! " ) ,
PLEASE_WAIT ( ChatColor . GRAY + " Please wait... " ) ,
2021-05-23 10:11:03 +12:00
INVALID_CLONE ( ChatColor . DARK_RED + " Unknown method '%s' - Valid methods are 'IgnoreEquipment' 'DoSneakSprint' " + " 'DoSneak' 'DoSprint' " ) ,
2020-04-27 16:56:48 +12:00
LIBS_COMMAND_WRONG_ARG ( ChatColor . RED + " [LibsDisguises] Invalid argument, use /libsdisguises help " ) ,
2021-05-23 10:11:03 +12:00
LIBS_UPDATE_UNKNOWN_BRANCH ( ChatColor . RED + " [LibsDisguises] Invalid argument, use 'dev' or 'release' to switch branches " ) ,
2017-06-20 05:06:35 +12:00
LIMITED_RADIUS ( ChatColor . RED + " Limited radius to %s! Don't want to make too much lag right? " ) ,
2017-07-08 21:02:35 +12:00
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! " ) ,
2017-06-20 05:44:31 +12:00
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 " ) ,
2017-06-20 05:19:46 +12:00
NO_CONSOLE ( ChatColor . RED + " You may not use this command from the console! " ) ,
2020-04-16 18:32:09 +12:00
NO_MODS ( ChatColor . RED + " %s is not using any mods! " ) ,
MODS_LIST ( ChatColor . DARK_GREEN + " %s has the mods: " + ChatColor . AQUA + " %s " ) ,
2017-06-20 05:44:31 +12:00
NO_PERM ( ChatColor . RED + " You are forbidden to use this command. " ) ,
2020-04-19 14:55:39 +12:00
UPDATE_ON_LATEST ( ChatColor . RED + " You are already on the latest version of LibsDisguises! " ) ,
2020-04-27 05:09:13 +12:00
UPDATE_ALREADY_DOWNLOADED ( ChatColor . RED + " That update has already been downloaded! " ) ,
2020-04-19 14:55:39 +12:00
UPDATE_FAILED ( ChatColor . RED + " LibsDisguises update failed! Check console for errors. " ) ,
UPDATE_SUCCESS ( ChatColor . DARK_GREEN + " LibsDisguises update success! Restart server to update! " ) ,
2020-04-27 16:56:48 +12:00
UPDATE_REQUIRED ( ChatColor . RED + " LibsDisguises requies an update check before it can give you that! " ) ,
2020-04-24 19:36:17 +12:00
UPDATE_INFO ( ChatColor . DARK_GREEN + " Lib's Disguises v%s, build %s, built %s and size %skb " ) ,
2020-04-19 14:55:39 +12:00
UPDATE_IN_PROGRESS ( ChatColor . DARK_GREEN + " LibsDisguises is now downloading an update... " ) ,
2017-06-20 05:44:31 +12:00
NO_PERM_DISGUISE ( ChatColor . RED + " You do not have permission for that disguise! " ) ,
2020-04-16 18:32:09 +12:00
NO_MODS_LISTENING ( ChatColor . RED + " This server is not listening for mods! " ) ,
2021-05-23 10:11:03 +12:00
NO_PERMS_USE_OPTIONS ( ChatColor . RED + " Ignored %s methods you do not have permission to use. Add 'show' to view unusable methods. " ) ,
2019-12-14 11:49:01 +13:00
OWNED_BY ( ChatColor . GOLD + " Plugin registered to '%%__USER__%%'! " ) ,
2017-06-20 05:44:31 +12:00
NOT_DISGUISED ( ChatColor . RED + " You are not disguised! " ) ,
2020-07-11 20:15:05 +12:00
DISGUISE_REQUIRED ( ChatColor . RED + " You must be disguised to run this command! " ) ,
2020-01-02 17:10:36 +13:00
TARGET_NOT_DISGUISED ( ChatColor . RED + " That entity is not disguised! " ) ,
2017-06-20 05:44:31 +12:00
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! " ) ,
2021-05-23 10:11:03 +12:00
PARSE_DISG_NO_EXIST ( ChatColor . RED + " Error! The disguise " + ChatColor . GREEN + " %s " + ChatColor . RED + " doesn't exist! " ) ,
2017-06-20 05:44:31 +12:00
PARSE_EXPECTED_RECEIVED (
2021-05-23 10:11:03 +12:00
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 " ) ,
2018-09-23 11:02:53 +12:00
PARSE_PARTICLE_REDSTONE (
2021-05-23 10:11:03 +12:00
ChatColor . RED + " Expected " + ChatColor . GREEN + " %s:Color,Size.0? " + ChatColor . RED + " , received " + ChatColor . GREEN + " %s " + ChatColor . RED +
" instead " ) ,
2017-06-20 05:44:31 +12:00
PARSE_NO_ARGS ( " No arguments defined " ) ,
2020-04-04 19:58:21 +13:00
PARSE_NO_OPTION_VALUE ( ChatColor . RED + " No value was given for the method %s " ) ,
2017-06-20 05:44:31 +12:00
PARSE_NO_PERM_NAME ( ChatColor . RED + " Error! You don't have permission to use that name! " ) ,
2021-05-23 10:11:03 +12:00
PARSE_NO_PERM_PARAM ( ChatColor . RED + " Error! You do not have permission to use the parameter %s on the %s disguise! " ) ,
2018-07-11 20:36:58 +02:00
PARSE_NO_PERM_REF ( ChatColor . RED + " You do not have permission to use disguise references! " ) ,
2017-06-20 05:44:31 +12:00
PARSE_NO_REF ( ChatColor . RED + " Cannot find a disguise under the reference %s " ) ,
2020-04-04 19:58:21 +13:00
PARSE_OPTION_NA ( ChatColor . RED + " Cannot find the method '%s' " ) ,
2017-06-20 05:44:31 +12:00
PARSE_SUPPLY_PLAYER ( ChatColor . RED + " Error! You need to give a player name! " ) ,
PARSE_TOO_MANY_ARGS ( ChatColor . RED + " Error! %s doesn't know what to do with %s! " ) ,
2019-03-06 15:16:14 +13:00
PARSE_INVALID_TIME ( ChatColor . RED + " Error! %s is not a valid time! Use s,m,h,d or secs,mins,hours,days " ) ,
2019-12-14 11:49:01 +13:00
PARSE_INVALID_TIME_SEQUENCE ( ChatColor . RED + " Error! %s is not a valid time! Do amount then time, eg. 4min10sec " ) ,
2017-06-20 05:44:31 +12:00
PARSE_USE_SECOND_NUM ( ChatColor . RED + " Error! Only the disguises %s and %s uses a second number! " ) ,
2021-05-23 10:11:03 +12:00
REF_TOO_MANY ( ChatColor . RED + " Failed to store the reference, too many cloned disguises. Please raise the maximum cloned disguises, or " +
2018-07-12 06:05:36 +12:00
" lower the time they last " ) ,
2017-06-20 05:44:31 +12:00
RELOADED_CONFIG ( ChatColor . GREEN + " [LibsDisguises] Reloaded config. " ) ,
UND_ENTITY ( ChatColor . RED + " Right click a disguised entity to undisguise them! " ) ,
2017-06-20 05:19:46 +12:00
UNDISG ( ChatColor . RED + " You are no longer disguised " ) ,
2017-06-20 05:44:31 +12:00
UNDISG_PLAYER ( ChatColor . RED + " %s is no longer disguised " ) ,
UNDISG_PLAYER_FAIL ( ChatColor . RED + " %s not disguised! " ) ,
UNDISG_PLAYER_HELP ( ChatColor . RED + " /undisguiseplayer <Name> " ) ,
UNDISRADIUS ( ChatColor . RED + " Successfully undisguised %s entities! " ) ,
2021-05-23 10:11:03 +12:00
UPDATE_READY ( ChatColor . RED + " [LibsDisguises] " + ChatColor . DARK_RED + " There is a update ready to be downloaded! You are using " + ChatColor . RED + " v%s " +
ChatColor . DARK_RED + " , the new version is " + ChatColor . RED + " v%s " + ChatColor . DARK_RED + " ! " ) ,
UPDATE_READY_SNAPSHOT (
ChatColor . RED + " [LibsDisguises] " + ChatColor . DARK_RED + " There is a new build of Lib's Disguises! You are using " + ChatColor . RED + " %s " +
ChatColor . DARK_RED + " , the latest build is " + ChatColor . RED + " #%s " + ChatColor . DARK_RED + " ! " ) ,
UPDATE_HOW (
ChatColor . DARK_AQUA + " Use " + ChatColor . AQUA + " /libsdisgusies changelog " + ChatColor . DARK_AQUA + " to see what changed, use " + ChatColor . AQUA +
" /libsdisguises update! " + ChatColor . DARK_AQUA + " to download the update! " ) ,
2017-07-23 23:47:22 +12:00
VIEW_SELF_ON ( ChatColor . GREEN + " Toggled viewing own disguise on! " ) ,
2020-01-02 17:10:36 +13:00
VIEW_SELF_OFF ( ChatColor . GREEN + " Toggled viewing own disguise off! " ) ,
2020-07-03 17:08:58 +12:00
VIEW_BAR_ON ( ChatColor . GREEN + " Toggled disguised notify bar on! " ) ,
VIEW_BAR_OFF ( ChatColor . GREEN + " Toggled disguised notify bar off! " ) ,
2020-01-02 17:10:36 +13:00
CLICK_TO_COPY ( ChatColor . GREEN + " Click to Copy: " ) ,
2020-02-19 12:57:39 +13:00
SKIN_DATA ( ChatColor . GREEN + " Skin Data: " + ChatColor . YELLOW + " %s " ) ,
CLICK_TO_COPY_DATA ( ChatColor . YELLOW + " Data " ) ,
2020-01-02 17:10:36 +13:00
CLICK_TO_COPY_WITH_SKIN ( ChatColor . GREEN + " Version with skin data: " ) ,
2020-02-19 12:57:39 +13:00
CLICK_TO_COPY_WITH_SKIN_NO_COPY ( ChatColor . GREEN + " Version with skin data: " + ChatColor . YELLOW + " %s " ) ,
COPY_DISGUISE_NO_COPY ( ChatColor . GREEN + " Data: " + ChatColor . YELLOW + " %s " ) ,
2020-01-02 17:10:36 +13:00
CLICK_TO_COPY_HOVER ( ChatColor . GOLD + " Click to Copy " ) ,
CLICK_COPY ( ChatColor . YELLOW + " " + ChatColor . BOLD + " %s " ) ,
2021-05-23 10:17:46 +12:00
SKIN_API_UUID_3 ( ChatColor . RED + " Using account with UUID version 3. If skin is incorrect, try change 'UUIDVersion' in protocol.yml " +
" to 3. If skin is still incorrect and you did not purchase Minecraft, this cannot be fixed. " ) ,
2020-01-02 17:10:36 +13:00
SKIN_API_IN_USE ( ChatColor . RED + " mineskin.org is currently in use, please try again " ) ,
SKIN_API_TIMER ( ChatColor . RED + " mineskin.org can be used again in %s seconds " ) ,
SKIN_API_FAIL ( ChatColor . RED + " Unexpected error while accessing mineskin.org, please try again " ) ,
2021-01-28 05:21:48 +13:00
SKIN_API_FAIL_TOO_FAST ( ChatColor . RED + " Too many requests accessing mineskin.org, please slow down! " ) ,
2020-01-02 17:10:36 +13:00
SKIN_API_BAD_URL ( ChatColor . RED + " Invalid url provided! Please ensure it is a .png file download! " ) ,
SKIN_API_FAILED_URL ( ChatColor . RED + " Invalid url provided! mineskin.org failed to grab it! " ) ,
SKIN_API_FAIL_CODE ( ChatColor . RED + " Error %s! %s " ) ,
SKIN_API_403 ( " mineskin.org denied access to that url " ) ,
SKIN_API_404 ( " mineskin.org unable to find an image at that url " ) ,
SKIN_API_IMAGE_TIMEOUT ( ChatColor . RED + " Error! mineskin.org took too long to connect! Is your image valid? " ) ,
2020-01-11 13:37:45 +13:00
SKIN_API_TIMEOUT_ERROR ( ChatColor . RED + " Error! Took too long to connect to mineskin.org! " ) ,
2021-05-23 10:11:03 +12:00
SKIN_API_TIMEOUT_API_KEY_ERROR ( ChatColor . RED + " Error! Took too long to connect to mineskin.org! Is the API Key correct? " ) ,
2020-01-11 13:37:45 +13:00
SKIN_API_TIMEOUT ( ChatColor . RED + " Took too long to connect to mineskin.org! " ) ,
SKIN_API_IMAGE_HAS_ERROR ( " Your image has the error: %s " ) ,
2020-01-02 17:10:36 +13:00
SKIN_API_USING_URL ( ChatColor . GRAY + " Url provided, now attempting to connect to mineskin.org " ) ,
SKIN_API_BAD_FILE_NAME ( ChatColor . RED + " Invalid file name provided! File not found! " ) ,
SKIN_API_BAD_FILE ( ChatColor . RED + " Invalid file provided! Please ensure it is a valid .png skin! " ) ,
SKIN_API_USING_FILE ( ChatColor . GRAY + " File provided and found, now attempting to upload to mineskin.org " ) ,
SKIN_API_INVALID_NAME ( ChatColor . RED + " Invalid name/file/uuid provided! " ) ,
SKIN_API_USING_UUID ( ChatColor . GRAY + " UUID successfully parsed, now attempting to connect to mineskin.org " ) ,
2020-06-20 09:26:48 +12:00
SKIN_API_USING_EXISTING_NAME ( ChatColor . GRAY + " Found a saved skin under that name locally! Using that! " ) ,
2021-05-23 10:11:03 +12:00
SKIN_API_USING_NAME ( ChatColor . GRAY + " Determined to be player name, now attempting to validate and connect to mineskin.org " ) ,
2020-01-02 17:10:36 +13:00
SAVE_DISG_HELP_1 ( ChatColor . GREEN + " The <DisguiseName> is what the disguise will be called in Lib's Disguises " ) ,
2021-05-23 10:11:03 +12:00
SAVE_DISG_HELP_2 ( ChatColor . GREEN + " /savedisguise <DisguiseName> - If you don't provide arguments, it'll try make a disguise from your " +
2020-01-02 17:10:36 +13:00
" current disguise. This will not work if you are not disguised! " ) ,
SAVE_DISG_HELP_3 ( ChatColor . GREEN + " /savedisguise <DisguiseName> <Arguments> " ) ,
2021-05-23 10:11:03 +12:00
SAVE_DISG_HELP_4 ( ChatColor . GREEN + " Your arguments need to be as if you're using /disguise. So '/disguise player Notch setsneaking' - " +
2020-01-02 17:10:36 +13:00
" Means '/savedisguise Notch player Notch setsneaking' " ) ,
SAVE_DISG_HELP_5 ( ChatColor . GREEN + " Remember! You can upload your own skins, then reference those skins! " ) ,
2021-05-23 10:11:03 +12:00
SAVE_DISG_HELP_6 ( ChatColor . GREEN + " If you are using setSkin, you can append :slim to your skin path to get the slim Alex model. So myskin " + " .png:slim " ) ,
GRAB_DISG_HELP_1 ( ChatColor . GREEN + " You can choose a name to save the skins under, the names will be usable as if it was an actual player " + " skin " ) ,
2020-04-13 21:14:04 +12:00
GRAB_DISG_HELP_2 ( ChatColor . DARK_GREEN + " /grabskin <Optional Name> https://somesite.com/myskin.png " ) ,
GRAB_DISG_HELP_3 ( ChatColor . DARK_GREEN + " /grabskin <Optional Name> myskin.png - Skins must be in the folder! " ) ,
GRAB_DISG_HELP_4 ( ChatColor . DARK_GREEN + " /grabskin <Optional Name> <Player name or UUID> " ) ,
2021-05-23 10:11:03 +12:00
GRAB_DISG_HELP_5 ( ChatColor . GREEN + " If you want the slim Alex version of the skin, append :slim. So 'myskin.png:slim' " ) ,
GRAB_DISG_HELP_6 ( ChatColor . GREEN + " You will be sent the skin data, but you can also use the saved names in disguises " ) ,
2020-06-20 09:26:48 +12:00
GRAB_HEAD_SUCCESS ( ChatColor . GREEN + " Head successfully grabbed and added to inventory! " ) ,
GRAB_HEAD_HELP_1 ( ChatColor . GREEN + " Grab the head of a file, player or url! This is a Lib's Disguises feature. " ) ,
GRAB_HEAD_HELP_2 ( ChatColor . DARK_GREEN + " /grabhead https://somesite.com/myskin.png " ) ,
GRAB_HEAD_HELP_3 ( ChatColor . DARK_GREEN + " /grabhead myskin.png - Skins must be in the folder! " ) ,
GRAB_HEAD_HELP_4 ( ChatColor . DARK_GREEN + " /grabhead <Player name or UUID> " ) ,
2021-05-23 10:11:03 +12:00
CUSTOM_DISGUISE_NAME_CONFLICT ( ChatColor . RED + " Cannot create the custom disguise '%s' as there is a name conflict! " ) ,
2020-01-02 17:10:36 +13:00
ERROR_LOADING_CUSTOM_DISGUISE ( ChatColor . RED + " Error while loading custom disguise '%s'%s " ) ,
2020-01-17 16:55:05 +13:00
SKIN_API_INTERNAL_ERROR ( ChatColor . RED + " Internal error in the skin API, perhaps bad data? " ) ,
META_INFO ( ChatColor . GREEN + " Name: %s, Watcher: %s, Index: %s, Type: %s, Default: %s " ) ,
META_NOT_FOUND ( ChatColor . RED + " No meta exists under that name! " ) ,
META_VALUES ( ChatColor . BLUE + " Metas: " + ChatColor . DARK_AQUA ) ,
2020-02-19 12:57:39 +13:00
META_VALUES_NO_CLICK ( ChatColor . BLUE + " Metas, use as param for more info: " + ChatColor . DARK_AQUA ) ,
2020-01-17 16:55:05 +13:00
META_VALUE_SEPERATOR ( ChatColor . AQUA + " , " + ChatColor . DARK_AQUA ) ,
2020-01-20 08:33:19 +13:00
META_CLICK_SHOW ( ChatColor . GOLD + " Click to show %s " ) ,
2021-05-23 10:11:03 +12:00
LIBS_PERM_CHECK_NON_PREM ( ChatColor . RED + " This server is not premium, non-admins should not be able to use commands " ) ,
2020-07-23 17:53:17 +12:00
LIBS_PERM_CHECK_CAN_TARGET ( ChatColor . GOLD + " You can specify a player target with /ld permtest <Target> instead! " ) ,
LIBS_PERM_CHECK_USING_TARGET ( ChatColor . GOLD + " Running the permission test on '%s' " ) ,
2020-01-20 08:33:19 +13:00
LIBS_PERM_CHECK_INFO_1 ( ChatColor . AQUA + " Now checking for the permission 'libsdisguises.disguise.pig' " ) ,
2020-07-23 17:53:17 +12:00
LIBS_PERM_CHECK_INFO_2 ( ChatColor . AQUA + " If you did not give this permission, please set it. " ) ,
2020-01-20 08:33:19 +13:00
NORMAL_PERM_CHECK_SUCCESS ( ChatColor . GOLD + " Normal permission check, success. " ) ,
NORMAL_PERM_CHECK_FAIL ( ChatColor . RED + " Normal permission check, fail. " ) ,
2021-05-23 10:11:03 +12:00
LIBS_PERM_CHECK_SUCCESS ( ChatColor . GOLD + " Lib's Disguises permission check, success. Pig disguise should be usable! " ) ,
LIBS_PERM_CHECK_FAIL ( ChatColor . GOLD + " Lib's Disguises permission check, fail. Your permission plugin isn't compliant! " ) ,
LIBS_PERM_CHECK_ZOMBIE_PERMISSIONS (
ChatColor . GOLD + " Tested libsdisguises.disguise.zombie, which your player seems to have! There may be a problem in your " + " permissions setup! " ) ,
LIBS_PERM_CHECK_COMMAND_UNREGISTERED ( ChatColor . RED + " The /disguise command seems to be unregistered! Check your config! " ) ,
LIBS_PERM_COMMAND_SUCCESS ( ChatColor . GOLD + " Tested permission '%s' for /disguise command access, permission success! " ) ,
2020-06-18 13:44:37 +12:00
LIBS_PERM_COMMAND_FAIL ( ChatColor . RED + " Tested permission '%s' for /disguise command access, permission failed! " ) ,
2020-02-04 16:06:34 +13:00
CANT_ATTACK_DISGUISED ( ChatColor . RED + " Cannot fight while disguised! " ) ,
2020-02-02 11:59:18 +13:00
CANT_ATTACK_DISGUISED_RECENTLY ( ChatColor . RED + " You were disguised recently! Can't attack yet! " ) ,
SWITCH_WORLD_DISGUISE_REMOVED ( ChatColor . RED + " Disguise removed as you've switched worlds! " ) ,
2020-02-05 14:23:53 +13:00
ACTION_BAR_MESSAGE ( ChatColor . GOLD + " Currently disguised as %s " ) ,
2020-02-19 12:57:39 +13:00
ITEM_SERIALIZED ( ChatColor . GOLD + " Json Serialized, click to copy: " ) ,
ITEM_SERIALIZED_MC ( ChatColor . GOLD + " MC Serialized, click to copy: " ) ,
ITEM_SERIALIZED_MC_LD ( ChatColor . GOLD + " MC Serialized for LD, click to copy: " ) ,
2020-02-06 13:59:57 +13:00
ITEM_SIMPLE_STRING ( ChatColor . GOLD + " Simple, click to copy: " ) ,
2020-02-19 12:57:39 +13:00
ITEM_SERIALIZED_NO_COPY ( ChatColor . GOLD + " Json Serialized: " + ChatColor . YELLOW + " %s " ) ,
ITEM_SERIALIZED_MC_NO_COPY ( ChatColor . GOLD + " MC Serialized: " + ChatColor . YELLOW + " %s " ) ,
ITEM_SERIALIZED_MC_LD_NO_COPY ( ChatColor . GOLD + " MC Serialized for LD: " + ChatColor . YELLOW + " %s " ) ,
ITEM_SIMPLE_STRING_NO_COPY ( ChatColor . GOLD + " Simple: " + ChatColor . YELLOW + " %s " ) ,
2020-02-06 13:59:57 +13:00
LIBS_SCOREBOARD_NO_TEAM ( ChatColor . RED + " Not on a scoreboard team! " ) ,
2021-05-23 10:11:03 +12:00
LIBS_SCOREBOARD_SUCCESS (
ChatColor . GOLD + " On scoreboard team '%s' with pushing disabled! If you're still having issues and you are disguised right " + " now, then " +
" you have a plugin modifying scoreboard through packets. Example of this is a plugin that modifies your " +
" name above head, or the tablist. Check their configs for pushing disabling options \ nSay 'I read to the " + " end' if you " +
" still need help with this, or we'll assume you can't read. " ) ,
LIBS_SCOREBOARD_NAMES_DISABLED ( ChatColor . RED + " Scoreboard names has been disabled, the test for player disguises has failed before it started " ) ,
LIBS_SCOREBOARD_IGNORE_TEST ( ChatColor . GREEN + " This was a seperate test from the self disguising collision test that will follow! " ) ,
2020-04-22 16:08:17 +12:00
USING_DEFAULT_CONFIG ( ChatColor . DARK_GREEN + " Using the default config! " ) ,
2020-04-24 15:59:59 +12:00
LIBS_SCOREBOARD_ISSUES ( ChatColor . GREEN + " Too many issues found, hidden %s " ) ,
LIBS_SCOREBOARD_NO_ISSUES ( ChatColor . GREEN + " No issues found in player disguise scoreboard name teams " ) ,
2021-05-23 10:11:03 +12:00
LD_COMMAND_UPDATEPROTOCOLLIB (
ChatColor . BLUE + " /libsdisguises updateprotocollib - " + ChatColor . AQUA + " Updates ProtocolLib to the latest development version " ) ,
2020-04-22 16:08:17 +12:00
LD_COMMAND_HELP ( ChatColor . BLUE + " /libsdisguises help - " + ChatColor . AQUA + " Returns this! " ) ,
2021-05-23 10:11:03 +12:00
LD_COMMAND_COUNT ( ChatColor . BLUE + " /libsdisguises count - " + ChatColor . AQUA + " Tells you how many active disguises there are " ) ,
LD_COMMAND_METAINFO ( ChatColor . BLUE + " /libsdisguises metainfo - " + ChatColor . AQUA + " Debugging info, tells you what the metadata is for a disguise " ) ,
LD_COMMAND_CONFIG ( ChatColor . BLUE + " /libsdisguises config - " + ChatColor . AQUA + " Tells you what's not normal in your config " ) ,
2020-04-22 16:08:17 +12:00
LD_COMMAND_UPDATE ( ChatColor . BLUE + " /libsdisguises update - " + ChatColor . AQUA +
2020-04-27 17:03:11 +12:00
" 'update' will fetch an update, 'update dev' will fetch a dev build update, 'update release' will fetch a " +
" release build update and 'update!' will download that update! " ) ,
2021-05-23 10:11:03 +12:00
LD_COMMAND_CHANGELOG ( ChatColor . BLUE + " /libsdisguises changelog - " + ChatColor . AQUA + " Gives you the changelog of the current update fetched " ) ,
2021-05-22 01:50:20 +12:00
LD_DEBUG_MINESKIN ( ChatColor . BLUE + " /libsdisguises mineskin - " + ChatColor . AQUA + " Prints debug information about MineSkin to console " ) ,
LD_DEBUG_MINESKIN_TOGGLE ( ChatColor . BLUE + " MineSkin debug is now %s, this command toggles the printing of MineSkin information to console " ) ,
2021-05-23 10:11:03 +12:00
LD_COMMAND_JSON ( ChatColor . BLUE + " /libsdisguises json - " + ChatColor . AQUA + " Turns the current held item into a string format " ) ,
2020-04-22 16:08:17 +12:00
LD_COMMAND_MODS ( ChatColor . BLUE + " /libsdisguises mods <Player?> - " + ChatColor . AQUA +
" If using modded entities, this will tell you what mods a player is using if possible " ) ,
2021-05-23 10:11:03 +12:00
LD_COMMAND_PERMTEST ( ChatColor . BLUE + " /libsdisguises permtest <Player?> - " + ChatColor . AQUA + " Does a quick test to see if your permissions are working " ) ,
LD_COMMAND_SCOREBOARD (
ChatColor . BLUE + " /libsdisguises scoreboard <Player?> - " + ChatColor . AQUA + " Does a test to see if there's any scoreboard issues it can detect " ) ,
LD_COMMAND_RELOAD ( ChatColor . BLUE + " /libsdisguises reload - " + ChatColor . AQUA + " Reload's the plugin config and possibly blows disguises " ) ,
LD_COMMAND_DEBUG ( ChatColor . BLUE + " /libsdisguises debug - " + ChatColor . AQUA + " Used to help debug scoreboard issues on a player disguise " ) ,
2020-06-18 15:48:59 +12:00
LD_COMMAND_UPLOAD_LOGS ( ChatColor . BLUE + " /libsdisguises uploadlogs - " + ChatColor . AQUA +
2021-05-23 10:11:03 +12:00
" Uploads latest.log, disguises.yml and configs and gives you the link to share. Used when seeking " + " assistance. " ) ,
2020-04-27 17:31:00 +12:00
SELF_DISGUISE_HIDDEN ( ChatColor . GREEN + " Self disguise hidden as it's too tall.. " ) ;
2017-06-20 05:06:35 +12:00
2020-04-27 17:03:11 +12:00
private final String string ;
2017-06-20 05:06:35 +12:00
LibsMsg ( String string ) {
this . string = string ;
}
public String getRaw ( ) {
return string ;
}
2020-06-27 21:01:58 +12:00
public BaseComponent [ ] getChat ( Object . . . strings ) {
String string = get ( strings ) ;
2020-06-30 16:06:27 +12:00
return DisguiseUtilities . getColoredChat ( string ) ;
2020-06-27 21:01:58 +12:00
}
2020-07-04 00:44:22 +12:00
public void send ( CommandSender player , Object . . . strings ) {
DisguiseUtilities . sendMessage ( player , this , strings ) ;
}
@Deprecated
2017-06-20 05:06:35 +12:00
public String get ( Object . . . strings ) {
2020-07-03 17:36:29 +12:00
int matches = StringUtils . countMatches ( getRaw ( ) , " %s " ) ;
if ( matches ! = strings . length ) {
2021-05-23 10:11:03 +12:00
DisguiseUtilities . getLogger ( )
. severe ( " Mismatch in messages, incorrect parameters supplied for " + name ( ) + " . Please inform plugin author if not using translations. " ) ;
2018-07-12 06:05:36 +12:00
}
2020-07-03 17:36:29 +12:00
String trans = TranslateType . MESSAGES . get ( getRaw ( ) ) ;
if ( trans . isEmpty ( ) | | strings . length = = 0 ) {
return trans ;
2018-07-12 06:05:36 +12:00
}
2017-06-20 05:06:35 +12:00
2020-07-03 17:36:29 +12:00
return String . format ( trans , strings ) ;
2017-06-20 05:06:35 +12:00
}
public String toString ( ) {
2020-07-04 00:59:33 +12:00
throw new IllegalStateException ( " Dont call this " ) ;
2019-12-14 11:49:01 +13:00
}
}