Advertisement
Guest User

Untitled

a guest
Jan 25th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. @Override
  2. public void run() {
  3. for(int i = 0; i < inv.getContents().length; i++) {
  4. ItemStack is = inv.getItem(i);
  5. ItemStack BlackStain = new ItemStack(Material.STAINED_GLASS_PANE, 1, (byte)15);
  6. if(is.getType() == Material.STAINED_GLASS || is.getType() == Material.STAINED_GLASS_PANE) {
  7.  
  8. if (is.getItemMeta()) {
  9. inv.setItem(i, new ItemStack(Material.STAINED_GLASS_PANE, 1, (byte) (new Random().nextInt(6)+1)));
  10. }
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement