Releases: drupijs/Drupi-JS
New command method and scripts are now sorted
New command method:
command.create("testCommand", {
prefix: "Drupi",
description: "Test command for the new command method",
usage: "/testCommand",
aliases: ["test"],
permission: true, //Boolean = require OP || String = permission
permissionMessage: color("&cWhoups, it looks like you don't have permissions to this command!"),
}, (sender, args) => {
sender.sendMessage("Hi!");
});
Added http.put and http.delete
Added
- http.put
- http.putWithHeaders
- http.delete
- http.deleteWithHeaders
Suggested by iGalaxy#2018
Fixed Event.removeListener and expansions
0.3.1 Fixed Event.removeListener and expansions
Drupi can now load external apis!
Example: https://stacket.net/drupi/modules/vault
Changelog:
- Added "asClass" to castManager
- Removed vault from Drupi (Use the module instead)
- Added addListenerExternal to eventManager
- Added getClassLoader to functionManager
- Added loadExternal to functionManager
- Added getPluginFile to functionManager
Added 1.15 support and a new compiler!
New compiler and settings!
Important!
Remove your utils.js file before updating!
Tons of new features!
Drupi 0.2.0 is finally out and it comes with a ton of new features!
Drupi is now under the Stacket name, which means that we are looking for more developers to work on the project.
The new website can be found at https://stacket.net/drupi, as well as the brand new module system and documentation.
The old website https://drupi.js.org/ will redirect to the new page.
Important!
For everything to function correctly, delete utils.js and config.yml inside of the Drupi plugin folder before installing it!
Libs are being replaced by modules, meaning they will no longer function.
To convert your libs into modules, check out this example: https://stacket.net/drupi/modules/examplemodule
You can generate a package.json for your module at https://stacket.net/drupi/modules/generate and upload it at https://stacket.net/drupi/modules/new.
Changes:
- ES7 support (Babel)
- Module system
- New website
- Better documentation
- New event handler/listener
- New command register
- Recursive scripts loading
- New Drupi command handler, with more information
- Native javascript support
- Added console.log and console.warn
- Cast manager now supports custom types (cast.as)
- New command manager
- Removed libs folder and support.
- New Drupi command permissions
/drupi reload - drupi.reload
/drupi modules - drupi.modules
/drupi install - drupi.install
/drupi update - drupi.update
/drupi info - drupi.info
Http server integrated
Now added ExpressManager
Evaluate code
Example:
var scriptFile = manager.getFile("scripts/test", "test.js");
manager.eval(scriptFile, function(){
logger.info("Done.");
});
LabyMod api integration and update checker fixed
LabyMod api documentation: https://github.com/drupijs/Drupi-JS/wiki/LabyMod-API
Libs and bug fixed
CreateConfig bug has now been fixed!
If there is a folder called libs inside of the drupi folder, it will now load that before the scripts folder! (Great for community libraries)