Skip to content

Releases: Keffisor/JDAExpansion

JDA Updated and code improvements

19 Nov 21:53
Compare
Choose a tag to compare

Updated to the JDA version of 5.0.0-beta.18 and code improvements

Updated JDAExpansion to the last version of JDA

11 Jan 14:58
Compare
Choose a tag to compare

Updated JDAExpansion to the lastest version (not alpha) and added all the new events.

Little config update and bug fixes

16 Dec 09:58
Compare
Choose a tag to compare
  • 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.

09 Nov 23:20
Compare
Choose a tag to compare
  • 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());
	}

}

Bug fixes of config

13 Sep 05:57
365a3a7
Compare
Choose a tag to compare

Now the config has a full support of UTF-8.
Now you can call the getConfig directly, without using the function onEnable on init.
Fixed code that can break all the bot.

Bug fix and somes changes to the api

12 Aug 05:46
Compare
Choose a tag to compare
BETA_v1.7

some changes

Support to the older versions of Windows 10

09 Jul 19:37
Compare
Choose a tag to compare

Now the JDAExpansion is compatible with windows 7, 8 and 8.1. For do this, i have changed all the print system of the console. Finally, now you can disable the /plugins in servers with the JDAExpansion.yml that will be generated.

Support to Slash Commands, fixed some bugs and changed the api on creating commands

07 Jul 03:58
Compare
Choose a tag to compare

The examples of the new slash commands and the new api can be found here https://github.com/Keffisor/JDAExpansion on the README.md

Updated JDA and the system of loading plugins

30 Jun 00:39
Compare
Choose a tag to compare

I made some changes on the api for creating commands. Changed the organization of some code on plugin loading. Now the plugins loaded by the JDAExpansion will be accesible by another plugins. Added the author and version on the plugin.yml. Updated to the last version of JDA. Added a automatical message on disable plugin. Now the messages of loaded or disabled plugin will have colors. Fixed the bug for get data with . in FileConfiguration.

New features and bug fixes

23 Apr 19:13
Compare
Choose a tag to compare

Now you can receive all the messages typed on the console with the event onMessageConsoleReceive

public class test implements ConsoleEvents {
 @Override
  public void onMessageConsoleReceive(String message) {
   
   }
}
Fixed a bug on getting the token on token.txt
Now the createCommand has better detecting on commands
Now load more correctly the plugins without interrupting any loading of plugins
Now you can get elements of a yml with .
Example:
 something:
   another:
    - example
   message: hi
String message = getConfig("config.yml").getString("Example.message");
List<Object> list = getConfig("config.yml").getList("Example.another");