Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.turt2live.materials;
- import org.bukkit.event.EventHandler;
- import org.bukkit.event.Listener;
- import org.bukkit.event.block.BlockPlaceEvent;
- import org.bukkit.plugin.java.JavaPlugin;
- public class SkullAirPlugin extends JavaPlugin implements Listener {
- /*
- * How to use:
- * 1) Load plugin onto server
- * 2) Create the structure of a Wither ("T" of Soul Sand)
- * 3) Place 2/3 heads, note that your chat log is as expected up to this point
- * 4) Place the last head, note that your chat log says "AIR"
- */
- @Override
- public void onEnable(){
- getServer().getPluginManager().registerEvents(this, this);
- }
- @EventHandler
- public void onBlockPlace(BlockPlaceEvent event){
- event.getPlayer().sendMessage(event.getBlock().getType().name());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment