Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class BasicBlockListener extends BlockListener {
- private final Basic plugin;
- public BasicBlockListener(final Basic plugin) {
- this.plugin = plugin;
- }
- public void onBlockRightClick(BlockRightClickEvent event){
- plugin.setPoint1(event.getBlock().getLocation());
- event.getPlayer().sendMessage(ChatColor.AQUA + "Point 1 set");
- }
- public void onBlockDamage(BlockDamageEvent event){
- plugin.setPoint2(event.getBlock().getLocation());
- event.getPlayer().sendMessage(ChatColor.AQUA + "Point 2 set");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment