CrazyCrates
CrazyCrates copied to clipboard
Added support for Oraxen plugin
I've added support for Oraxen plugin because I needed it in my project. It's useful feature so I'm offering you this pull request.
How to activate OraxenSupport:
- go to config.yml and set Settings.UseOraxen: true
- go to crate specific config and set the display name of the price to the name of the item in the Oraxen plugin's config
It should work. Enjoy :)
Also keep in mind that if you use item from Oraxen, all it's attributes will be applied from Oraxen. Except crazycrate-prize NBT tag.
For some reason softdepend did not work for Oraxen. Because of this issue I've implemented function to the Support enum that enables all loaded dependencies. I also put a method isPluginEnabled to the Support because that is more important than isPluginLoaded.
To compile CrazyCrates, you need to install Oraxen plugin (version >= 1.116.2) to the local Maven repository.
Command to install mvn dependency
mvn install:install-file -DgroupId="com.github.Th0rgal" -DartifactId="Oraxen" -Dversion="1.116.2" -Dpackaging="jar" -Dfile="oraxen.jar"
Do you think you can update this to support the current CrazyCrates?
Sure, I'll try.
Sure, I'll try.
If you do, I will merge it after I test it. I want to get all pull requests handled before I merge the features/multi-platform branch