Advertisement
Guest User

Untitled

a guest
Dec 8th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.74 KB | None | 0 0
  1. package events;
  2.  
  3. import org.bukkit.Location;
  4. import org.bukkit.Material;
  5. import org.bukkit.block.Block;
  6. import org.bukkit.entity.Player;
  7. import org.bukkit.event.EventHandler;
  8. import org.bukkit.event.Listener;
  9. import org.bukkit.event.block.BlockPlaceEvent;
  10.  
  11. import com.DylanPerez.www.Main;
  12. import com.sk89q.worldedit.internal.annotation.Selection;
  13.  
  14. public class BuildEvents implements Listener {
  15.    
  16.     public Main plugin;
  17.    
  18.     public BuildEvents(Main plugin) {
  19.         this.plugin = plugin;
  20.     }
  21.    
  22.     @EventHandler
  23.     public void onPlaceBlock(BlockPlaceEvent e) {
  24.         Player p = (Player) e.getPlayer();
  25.         Block bp = e.getBlockPlaced();
  26.         Selection s = plugin.getAPI().getSelection(p);
  27.        
  28.         if(bp.getType().equals(Material.OAK_SLAB)) {
  29.        
  30.         }
  31.     }
  32.    
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement