turt2live

Untitled

Feb 17th, 2013
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.23 KB | None | 0 0
  1. Block block = event.getBlock();
  2. block.setMetadata("key", value);
  3. block.setType(Material.STONE);
  4.  
  5. // Somewhere else (other class)
  6. Block block = location.getBlock();
  7. if(block.hasMetadata("key")){
  8.     plugin.scream("WE HAS A KEY!");
  9. }
Advertisement
Add Comment
Please, Sign In to add comment