Usage:
When you are falling as an airbender, just hold down crouch and you will glide in the direction you are looking!
Permission: ProjectKorra.ability.AirGlide
For Developers:
I have added two new things you can use. The first thing is a new method of canAirGlide(Player player)
How this is used:
The next is a custom event you can listen to and cancel if you choose. You can also get the name and UUID of the player who is gliding.
How this is used:
You can do whatever you want with those variables. If you cancel the event, the glide will not happen!
ChangeLog:
Version 1.5:
Cleaned up code, added new methods for my custom event, and made ability default to enabled for all airbenders
Version 1.0:
Wrote ability
"This is not an official ProjectKorra ability, therefore, no official support will be provided in any threads other than this one. Use at your own risk."
When you are falling as an airbender, just hold down crouch and you will glide in the direction you are looking!
Permission: ProjectKorra.ability.AirGlide
For Developers:
I have added two new things you can use. The first thing is a new method of canAirGlide(Player player)
How this is used:
Code:
if(AGMethods.canAirGlide(yourplayervariable)) {
//code
}
How this is used:
Code:
@EventHandler
public void onPlayerGlide(AirGlideEvent event) {
Player player = event.getPlayer();
String playername = event.getPlayerName();
String playeruuid = event.getPlayerUUID();
GameMode playergamemode = event.getPlayerGameMode();
BendingPlayer bender = event.getBPlayer();
Boolean isAvatar = event.isPlayerAvatar();
Boolean canFly = event.canPlayerFly();
event.setCancelled(true);
}
ChangeLog:
Version 1.5:
Cleaned up code, added new methods for my custom event, and made ability default to enabled for all airbenders
Version 1.0:
Wrote ability
"This is not an official ProjectKorra ability, therefore, no official support will be provided in any threads other than this one. Use at your own risk."