Hey everyone, sorry for the long time without updates, but I think that the plugin doesn't needs to be updated all the time to be good, having not a lot of features helps a lot with it; but hey, here we are, a new update is posted.
Changes:
The chat color now isn't duplicated (why it was and why nobody reported it?)
Now chat color and chat format have 2 different permissions. The new permissions being ezchat.chat.color and ezchat.chat.format, and a general permission for the 2 being ezchat.chat.all that overrides the other two, the old permission ezchat.color isn't available anymore.
Updated adventure.
And that's it, happy new year for everyone that supports EzChat (sorry I'm late
) and happy easter (now we're being early).
Hello everyone, most of the plugin was recoded to use features from newer versions of Minecraft and better support for Paper.
Most of the changes are internal and no changes are required from the server owners, with the unique visible change being the change of configuration structure of the chat formats.
Originally, the chat-color field on the formats was not supposed to allow placeholders, so, since the first version, only ChatColor transformation was performed on that field, but now, I've been asked for placeholder support on that field, so now the support is here!
After a long wait, compatibility with 1.17 was achieved.
Not in the best way IMO, since we deactivated the dependency downloader, now the plugin weights 300+ KB, instead of the 80 KB that weighted. But compatibility with the last version is more important than weight.
After our maven repository was reinstalled because of some problems, the dependencies used by EzChat didn't exist, so the initialization of new server instances with a new installation of the plugin didn't work, generating this error
Code (Text):
[13:34:18] [Server thread/ERROR]: Exception details below:
java.lang.NoClassDefFoundError: me/fixeddev/ezchat/commandflow/annotated/CommandClass
at me.fixeddev.ezchat.ChatPlugin.registerCommands(ChatPlugin.java:90) ~[?:?]
at me.fixeddev.ezchat.ChatPlugin.onEnable(ChatPlugin.java:62) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.16.5.jar:git-Yatopia-ver/1.16.5-114]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:380) ~[patched_1.16.5.jar:git-Yatopia-ver/1.16.5-114]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:483) ~[patched_1.16.5.jar:git-Yatopia-ver/1.16.5-114]
at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:501) ~[patched_1.16.5.jar:git-Yatopia-ver/1.16.5-114]
at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:415) ~[patched_1.16.5.jar:git-Yatopia-ver/1.16.5-114]
at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:593) ~[patched_1.16.5.jar:git-Yatopia-ver/1.16.5-114]
at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:303) ~[patched_1.16.5.jar:git-Yatopia-ver/1.16.5-114]
at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1074) ~[patched_1.16.5.jar:git-Yatopia-ver/1.16.5-114]
at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291) ~[patched_1.16.5.jar:git-Yatopia-ver/1.16.5-114]
at java.lang.Thread.run(Unknown Source) [?:?]
Caused by: java.lang.ClassNotFoundException: me.fixeddev.ezchat.commandflow.annotated.CommandClass
at java.net.URLClassLoader.findClass(Unknown Source) ~[?:?]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:183) ~[patched_1.16.5.jar:git-Yatopia-ver/1.16.5-114]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:111) ~[patched_1.16.5.jar:git-Yatopia-ver/1.16.5-114]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
... 12 more
This update fixes this problem, while also updating the dependencies
Ok this update actually doesn't add any new functionality or fixes any bugs, only reduces the size of the plugin by downloading the dependencies at runtime instead of having them already.
This update fixes the placeholder colors since ezchat would fail to convert the hex colors from placeholders.
Also, an internal library was changed to allow the plugin to work with other plugins using the same library but another version
Ok, not a long time ago a hex color format was added, but it was really buggy(&[RRRR,GGGG,BBBB]). And later on the format &[RR,GG,BB] was added to be more consistent with other plugins.
Now, the formats &#RRGGBB and #RRGGBB are available!
Also the old format was removed from the plugin
We changed the old 12 digits rgb into a readable 6 digits RGB, now the colors should work just fine, without all the previous problems caused by our old crappy early format
First the most important thing for you, the users of this chat plugin.
The bugs related to n, m, k and l formats are fixed, now the chat works like it should work.
Instead of looking like this:
Now looks like this:
The used text is this:
Also, a mini UUIDCache api was added for the addons of EzChat(not released yet).
Other thing that was modified this update is a method used to convert the EzChat rgb colors into the 1.16 color scheme, now it's approximately 16 times faster!
The &r(reset) color code wasn't working correctly. After a bold(&l), obfuscated(&k) or other format if you tried to reset the format with &r wouldn't work, this update fixes that using a custom version of TextComponent.fromLegacyText and modifying how the components are appended
This is a small update just including support for 1.16 colors, there are 3 ways to use a 1.16 color on the format, the first one is spigot's default which is
Code (Text):
§xRRRRGGGGBBBB
The second way is the same thing but using & instead of §, and the third way is an easier to read version of the spigot's default.
Code (Text):
&[RRRR,GGGG,BBBB]
Since the color is hexadecimal on each way R, G and B can be any number from 0 to 9 and A to F. R meaning RED, G meaning Green and B meaning Blue.
Also, fixed a bug when the default formats where generated and the actions where [null] instead of [NONE]
This is a small update, just a bugfix. It fixes the bug that on some server versions the plugin will never hook into PlaceholderAPI. Also, updates an internal library
Fixed a problem caused by the plugin listening to a cancelled ChatEvent, this should make it compatible with some other plugins like ChatSentinel that cancel the chat on certain cases
Ok, the api isn't public yet, but, an event for the api was added.
The AsyncEzChatEvent, is like an AsyncPlayerChatEvent but instead of using formats like this "%1$s: %2$s" uses json formats