CrazyCrates icon indicating copy to clipboard operation
CrazyCrates copied to clipboard

Added support for Oraxen plugin

Open QuakyCZ opened this issue 3 years ago • 6 comments

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:

  1. go to config.yml and set Settings.UseOraxen: true
  2. 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 :)

QuakyCZ avatar Oct 01 '21 23:10 QuakyCZ

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.

QuakyCZ avatar Oct 01 '21 23:10 QuakyCZ

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.

QuakyCZ avatar Oct 04 '21 10:10 QuakyCZ

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"

QuakyCZ avatar Oct 04 '21 13:10 QuakyCZ

Do you think you can update this to support the current CrazyCrates?

ryderbelserion avatar Sep 01 '22 22:09 ryderbelserion

Sure, I'll try.

QuakyCZ avatar Sep 01 '22 22:09 QuakyCZ

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

ryderbelserion avatar Sep 01 '22 22:09 ryderbelserion