HomeJavaModsSocial-NoFall
Social-NoFall
Please Remember To Rate This Plugin
Please Be Honest, Please do not post bugs as reviews post them in the discussion tab above.


--------------------{Command and Permissions}--------------------

SOCIAL-NoFall
Prevent Fall Damage in your Server

--------------------{Command and Permissions}--------------------​

NO COMMANDS:

PERMISSION: social.nofall
(Needed so players get no fall damage.)

--------------------{Features}--------------------​

--------------------{Planned To Add}--------------------
--------------------{Known Bugs}--------------------​

--------------------{OPEN SOURCE}--------------------
Spoiler: SOURCE CODE
Code (Text):
package me.augesrob.socialnofall;

import org.bukkit.Server;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDamageEvent;
import org.bukkit.event.entity.EntityDamageEvent.DamageCause;
import org.bukkit.plugin.PluginDescriptionFile;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;

public class NoFall
  extends JavaPlugin
  implements Listener
{
  public void onEnable()
  {
    getServer().getConsoleSender().sendMessage(">>>>>>>>>>>>>>>>>>Social-NoFall<<<<<<<<<<<<<<<<<");
    getServer().getConsoleSender().sendMessage("Social-NoFall " + getDescription().getVersion() + " enabled!");
    getServer().getConsoleSender().sendMessage("All rights reserved by augesrob!");
    getServer().getConsoleSender().sendMessage("You are allowed to decompile this plugin!");
    getServer().getConsoleSender().sendMessage(">>>>>>>>>>>>>>>>>>Social-NoFall<<<<<<<<<<<<<<<<<");
    getServer().getPluginManager().registerEvents(this, this);
  }

  public void onDisable() {}

  @EventHandler
  public void onDamage(EntityDamageEvent event)
  {
    if (!(event.getEntity() instanceof Player)) {
      return;
    }
    if ((event.getCause().equals(EntityDamageEvent.DamageCause.FALL)) && (((Player)event.getEntity()).hasPermission("social.nofall"))) {
      event.setCancelled(true);
    }
  }
}
 


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Please note: If you find any bugs please post them in the discussion area.
All my plugins are coded and compiled in java 8 and only for Spigot 1.9 and above

If you are also a coder who wants to help me fix bugs and or tweak anything let me know what I should change or add.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Social-NoFall is a free Minecraft Java mod. Compatible with Minecraft 1.9, 1.10. Downloaded 252 times (via Spigot). Download it and open it directly in the game.

Explore more