Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Block block = event.getBlock();
- block.setMetadata("key", value);
- block.setType(Material.STONE);
- // Somewhere else (other class)
- Block block = location.getBlock();
- if(block.hasMetadata("key")){
- plugin.scream("WE HAS A KEY!");
- }
Advertisement
Add Comment
Please, Sign In to add comment