TF-EssentialsX/Essentials/src/com/earth2me/essentials
Johnny Cao fb5ebdb0c2 Fixes #1637: Correctly handle /mail permissions (#1743) @AgentTroll
Fixes #1637

/mail stripped colors from the entire message before as reported by the issue. The desired fix was to only strip the color from the sent message rather than from the entire message format (e.g. prefixes coming before the message itself).

Fixed by formatting only the message before passing it to the localization.

Also had a minor issue with FormatUtil in which it failed to strip ampersand (&)-formatted color codes, which was amended by stripping both VANILLA_*_PATTERN as well as REPLACE_*_PATTERN in FormatUtil#formatString(...). It's not necessary to actualy strip any vanilla (i.e. section-prefixed) color codes since that's already done by FormatUtil#stripFormat(String), but I'd like to keep the changes as non-invasive as possible at the current moment.

Demo: git-Spigot-d20369f-7fc5cd8 (MC: 1.9) (Implementing API version 1.9-R0.1-SNAPSHOT)
https://streamable.com/umyi8

This is my first time contributing so please be gentle :)
2018-01-29 18:01:20 +00:00
..
api Implement tab completion for all commands. (#1282) 2017-06-11 01:17:43 +01:00
commands Fixes #1637: Correctly handle /mail permissions (#1743) @AgentTroll 2018-01-29 18:01:20 +00:00
craftbukkit Fix compile 2016-12-12 10:09:43 -06:00
messaging [Feature] Added new property 'socialSpyMsgFormat' 2017-10-22 14:32:17 +01:00
metrics Add missing enable and disable functions to Metrics class (#1270) 2017-05-31 11:31:08 +01:00
perm Add LuckPerms to "specialCasePlugins" in SuperpermsHandler (#1518) 2017-08-27 22:20:48 +01:00
register/payment Run IntelliJ IDEA inspections 2015-06-03 14:11:56 -06:00
settings Reformat 2015-04-14 23:06:16 -05:00
signs Move kits to kits.yml (#1774) 2018-01-18 00:25:00 -08:00
storage Avoid using reflection for things SnakeYAML supports directly now (#1634) 2017-11-10 18:01:29 +00:00
textreader Merge branch '2.x' into fix-metaitemstack-keyword-replacer 2018-01-16 15:11:05 -08:00
utils Format currency correctly by placing negative sign at beginning. 2017-08-19 20:11:21 +01:00
AlternativeCommandsHandler.java Run IntelliJ IDEA inspections 2015-06-03 14:11:56 -06:00
Backup.java Reformat 2015-04-14 23:06:16 -05:00
ChargeException.java Reformat 2015-04-14 23:06:16 -05:00
CommandSource.java Rewrote messaging structure for more abstractness. 2015-10-27 20:46:58 -06:00
Console.java Add isReachable API to IMessageRecipient. 2015-10-30 19:58:30 +00:00
Enchantments.java Implement tab completion for all commands. (#1282) 2017-06-11 01:17:43 +01:00
Essentials.java Move kits to kits.yml (#1774) 2018-01-18 00:25:00 -08:00
EssentialsBlockListener.java Update spawner blockstates (#1536) 2017-09-14 07:36:39 +01:00
EssentialsConf.java Use try-with-resources 2016-03-01 11:52:29 -07:00
EssentialsEntityListener.java Make {player} referencing powertools activate only when the user has powertools enabled (#1474) 2017-08-13 16:03:46 +01:00
EssentialsPlayerListener.java Use correct value 2017-12-19 00:22:00 -08:00
EssentialsPluginListener.java Fix compile, consider this stable 2015-06-19 21:48:11 -04:00
EssentialsServerListener.java Catch NullPointerExceptions in SLPE (#1463) 2017-08-21 10:40:23 +01:00
EssentialsTimer.java Nullcheck user iteration in EssentialsTimer (fixes #675) 2016-06-25 09:47:06 -06:00
EssentialsUpgrade.java Move kits to kits.yml (#1774) 2018-01-18 00:25:00 -08:00
EssentialsUserConf.java Reformat 2015-04-14 23:06:16 -05:00
ExecuteTimer.java Run IntelliJ IDEA inspections 2015-06-03 14:11:56 -06:00
I18n.java Reformat 2015-04-14 23:06:16 -05:00
IConf.java Run IntelliJ IDEA inspections 2015-06-03 14:11:56 -06:00
IEssentials.java Move kits to kits.yml (#1774) 2018-01-18 00:25:00 -08:00
IEssentialsModule.java Reformat 2015-04-14 23:06:16 -05:00
ISettings.java Move kits to kits.yml (#1774) 2018-01-18 00:25:00 -08:00
ITarget.java Run IntelliJ IDEA inspections 2015-06-03 14:11:56 -06:00
ItemDb.java Properly check for empty set 2018-01-22 16:38:01 -08:00
IUser.java Implement clear confirmation (#1623) 2017-11-12 16:44:53 +00:00
Jails.java Reformat 2015-04-14 23:06:16 -05:00
Kit.java Move kits to kits.yml (#1774) 2018-01-18 00:25:00 -08:00
Kits.java Move kits to kits.yml (#1774) 2018-01-18 00:25:00 -08:00
LocationTarget.java Reformat 2015-04-14 23:06:16 -05:00
ManagedFile.java Reformat 2015-04-14 23:06:16 -05:00
MetaItemStack.java Don't add itemflags if none are present 2018-01-22 16:37:01 -08:00
Mob.java Capitalise Parrot in Mob. 2017-06-18 21:00:02 +01:00
MobData.java Update to 1.12. :D 2017-06-18 19:54:04 +01:00
OfflinePlayer.java Fix typo in OfflinePlayer#setBanned(boolean). 2017-06-18 21:32:24 +01:00
PlayerExtension.java Reformat 2015-04-14 23:06:16 -05:00
PlayerList.java Reformat 2015-04-14 23:06:16 -05:00
PlayerTarget.java Reformat 2015-04-14 23:06:16 -05:00
Potions.java Update potions to 1.9 2016-03-06 16:19:06 -07:00
Settings.java Add Vault prefix/suffix support to EssXChat (#1663) 2018-01-21 01:37:30 -08:00
SpawnMob.java Fix missing setVillager call 2016-11-28 17:25:29 -06:00
Teleport.java Don't force player out of vehicle on teleport. Fixes #582 (#833) 2016-08-26 21:29:22 -05:00
TimedTeleport.java Reformat 2015-04-14 23:06:16 -05:00
TNTExplodeListener.java Reformat 2015-04-14 23:06:16 -05:00
Trade.java Reformat 2015-04-14 23:06:16 -05:00
User.java Implement clear confirmation (#1623) 2017-11-12 16:44:53 +00:00
UserData.java Per-user toggles disabled by default 2018-01-21 18:40:13 -08:00
UserMap.java Fix JDK9 issue (#1713) 2017-12-29 14:46:09 +00:00
UUIDMap.java Don't allow double loads 2016-03-02 08:48:32 -07:00
Warps.java Reformat 2015-04-14 23:06:16 -05:00
Worth.java Reformat 2015-04-14 23:06:16 -05:00