A Nukkit plugin allows you to disable taking fall damage! Great for a donator perk.
Permission | Default |
---|---|
jellyllegs.* | false |
jellylegs.toggle | op |
jellylegs.toggle.others | op |
There is a single JellyLegsToggleEvent
that is fired when a player toggles their JellyLegs status.
The event is cancellable.
In JellyLegsPlugin
there are 2 methods for accessing or changing a players JellyLegs status.
Here is a full example:
JellyLegsPlugin jellyLegs = getServer().getPluginManager().getPlugin("JellyLegs");
jellyLegs.setJellyLegs(player, true);
if (jellyLegs.hasJellyLegs(player)) {
player.sendMessage("You have Jelly Legs!");
}