SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package net.hypexmc.Events;
  2.  
  3. import net.hypexmc.Utils.Item;
  4. import org.bukkit.Material;
  5. import org.bukkit.entity.Player;
  6. import org.bukkit.event.EventHandler;
  7. import org.bukkit.event.Listener;
  8. import org.bukkit.event.player.PlayerInteractEvent;
  9. import org.bukkit.event.player.PlayerJoinEvent;
  10. import org.bukkit.inventory.ItemStack;
  11.  
  12. public class PlayerHotBarEvent implements Listener {
  13.  
  14.  
  15.     @EventHandler
  16.     public void onJoin(PlayerJoinEvent event) {
  17.  
  18.         Player player = event.getPlayer();
  19.  
  20.         ItemStack island_create = Item.create(Material.GRASS,1,"&B&LIsland &F&LCreate",
  21.                 "&7Click to create your island!");
  22.  
  23.  
  24.  
  25.         player.getInventory().setItem(0,island_create);
  26.  
  27.  
  28.  
  29.         ItemStack island_settings = Item.create(Material.FURNACE,1,"&B&LIsland &F&LSettings",
  30.                 "&7Click to manage your island settings!");
  31.  
  32.         player.getInventory().setItem(4,island_settings);
  33.  
  34.  
  35.  
  36.         ItemStack coop_manager = Item.create(Material.DIAMOND_SWORD,1,"&B&LCOOP &F&LManager",
  37.                 "&7Click to manage your island &BCOOP &7settings!");
  38.  
  39.  
  40.         player.getInventory().setItem(8,coop_manager);
  41.     }
  42.    
  43.     @EventHandler
  44.     public void onPlayerClick(PlayerInteractEvent event) {
  45.        
  46.     }
  47.    
  48.    
  49.    
  50.    
  51. }
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