[SIMPLE] No Fall Damage

Discussion in 'Archived: Plugin Requests' started by Troopuh, Jan 18, 2014.

  1. Offline

    Troopuh

    Plugin category: Fixes

    Suggested name: NoFallDamage

    What I want: I'd like a simple plugin disabling ALL and ANY fall damage. I would like the plugin to disable fall damage all-together.

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: fall.damage - Disables fall damage for player.

    When I'd like it by: Today.

    Thanks!
     
  2. Offline

    BDKing88

    Troopuh
    Done, the permission is fall.damage and is default to everyone. Let me know if you run into any problems :) <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Nov 4, 2016
  3. Offline

    Troopuh

  4. Offline

    BDKing88

  5. Online

    timtower Administrator Administrator Moderator

    Troopuh I know that this is solved already but WorldGuard has an option to disable fall-damage ( and other types )
     
  6. Offline

    hjogj5

    I know that its solved but if needed here is a optional code for removing falling damage:
    Code:java
    1. @EventHandler
    2. public void onPlayerDamage(EntityDamageEvent e) {
    3. if (e.getEntity() instanceof Player) {
    4. Player p = (Player) e.getEntity();
    5. if (e.getCause() == DamageCause.FALL) {
    6. e.setDamage(0.0);
    7. }
    8. }
    9. }
     

Share This Page