Releases: Keffisor/JDAPlug
Releases · Keffisor/JDAPlug
Comments bug fix
Bug fix for the truncation of errors in the console
Now all the errors are displayed on the console with no truncation.
Bug fixes and restructures in the project
- Fixed the colors in console for Windows 11.
- createCommand renamed to CommandExecutor.
- Comments are not removed anymore in the yml configuration files.
- The sender "Command" has been renamed to "TextCommand".
- New function in JavaPlugin: getDataFolder for get the path of the plugin's directory
- New casting functions in CommandSender and has been renamed the following functions:
- sendMessage -> sendSenderMessage
- replyMessage -> replySender
- replyEmbeds -> replySenderEmbeds
Java 8-21 compatibility
Compatibility for Java +8 (Tested on Java 17/21 and working fine) and updated the logback version
Bug fixes, new name and JDA version updated
- Was fixed some bugs related to set/get in FileConfiguration and now the config will be formatted any dot into a map.
- Updated the JDA version into the last one.
- New variables on JDAPlug.yml.
- New project structure and name.
v1.0-beta
JDA Updated and code improvements
Updated to the JDA version of 5.0.0-beta.18
and code improvements
Updated JDAExpansion to the last version of JDA
Updated JDAExpansion to the lastest version (not alpha) and added all the new events.
Little config update and bug fixes
- Fixed bug of register event with function registerEvent
- Fixed bug on registering slashcommands with the createCommand class
- Added the event MessageConsoleReceivedEvent to the PluginListener (And removed the previous way to call that event)
- Now when it's created the config file of a plugin doesn't sent anymore a error to the console
- Now the config will be not reset when the config internally has been changed
- Now you can disable the command !version and you can set a message to the commands that can be disabled
New api of events, bug fixes and some changes.
- Changed PluginListener to JavaPlugin
- Changed some imports and fixed some bugs.
- Now the error are full displayed on the console
- The arguments now starts by 0.
- New system for register events (PluginListener). You can register events as the same way as Bukkit.
public class EventTest implements PluginListener {
/*
With the new system of events in JDAExpansion you will be able to declare any event with a custom name, you can repeat in the same
class any event and you can set the priority of execution of that event.
*/
@EventHandler(priority = EventPriority.MONITOR) //set the priority of the event, if it's not set, it will be NORMAL by default.
public void test(MessageReceivedEvent e) {
System.out.println(e.getMessage().getContentRaw());
}
@EventHandler
public void test2(MessageReceivedEvent e) {
System.out.println(e.getAuthor().getAsTag());
}
}