• Hello Guest! Did you know that ProjectKorra has an official Discord server? A lot of discussion about the official server, development process, and community discussion happens over there. Feel free to join now by clicking the link below.

    Join the Discord Server
Resource icon

ABANDONED AirGlide 3

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:

Code:
if(AGMethods.canAirGlide(yourplayervariable)) {
        //code
}
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:

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);
}
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."
Author
AlexTheCoder
Downloads
2,022
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from AlexTheCoder

Latest updates

  1. 1.7.0 Beta 2

    Updated to work with Beta 2 of 1.7.0 and above ONLY
  2. AirGlide 1.8 Update!

    This move will no longer kick players if they glide for too long, as well as provides 1.8 support!
Top