FoxRank v1.9.4
Hey! This update is a small yet important one! You can now directly access the instance of FoxRank using Bukkit's ServicesManager
.
To get started, add the following dependency tag to your pom.xml
<dependency>
<groupId>me.foxikle</groupId>
<artifactId>foxrank</artifactId>
<version>1.9.4</version>
</dependency>
This tells maven to download the FoxRank library for you.
Next, to get an Instance of FoxRank, simply use Bukkit's ServicesManager
class.
Here is an example class using it. Make sure this is in your main class' onEnable
method.
import me.foxikle.foxrank.FoxRank;
import org.bukkit.plugin.java.JavaPlugin;
public class Demo implements JavaPlugin {
private FoxRank foxRank;
@Override
onEnable() {
foxrank = this.getServer().getServicesManager().load(FoxRank.class);
}
public FoxRank getFoxRank() {
return foxRank;
}
}
Now you should be all set to use the FoxRank library. If you encounter any bugs, please be sure to report them in the
issues tab.
Other Changes
RankedPlayer
now requires an Instance of FoxRank.RankedPlayer(Player, FoxRank)
- Fixed an issue with the Bungeecord Channel connecting even when it was disabled.