SHARE
TWEET

Untitled

a guest Apr 22nd, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package Events;
  2.  
  3. import org.bukkit.Effect;
  4. import org.bukkit.entity.Player;
  5. import org.bukkit.event.EventHandler;
  6. import org.bukkit.event.Listener;
  7. import org.bukkit.event.player.PlayerMoveEvent;
  8.  
  9. public class Boots implements Listener {
  10.    
  11.     @EventHandler
  12.     public void onMove(PlayerMoveEvent e) {
  13.         Player p = e.getPlayer();
  14.        
  15.         if(p.getInventory().getBoots().getItemMeta().getDisplayName().equalsIgnoreCase("§8× §5MAGIC-BOOTS §8×")) {
  16.             p.getWorld().playEffect(p.getLocation().add(0, 0, 0), Effect.WITCH_MAGIC, 1);
  17.            
  18.            
  19.         }
  20.        
  21.         if(p.getInventory().getBoots().getItemMeta().getDisplayName().equalsIgnoreCase("§8× §fCLOUD-BOOTS §8×")) {
  22.             p.getWorld().playEffect(p.getLocation().add(0, 0, 0), Effect.CLOUD, 1);
  23.            
  24.         }
  25.        
  26.        
  27.        
  28.    
  29.     if(p.getInventory().getBoots().getItemMeta().getDisplayName().equalsIgnoreCase("§8× §1F§2A§3R§4B-§5S§6C§7H§8U§9H§0E §8×")) {
  30.         p.getWorld().playEffect(p.getLocation().add(0, 0, 0), Effect.COLOURED_DUST, 1);
  31.        
  32.     }
  33.    
  34.  
  35.  
  36. }
  37. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top