Advertisement
Guest User

Untitled

a guest
Jul 26th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. package com.gmail.kumakumapark.tutorialplugin;
  2.  
  3. import java.util.ArrayList;
  4. import java.util.Collections;
  5.  
  6. import org.bukkit.Material;
  7.  
  8. public class Itemlist {
  9.  
  10. public static void main(String[] args) throws Exception {
  11.  
  12. ArrayList<String> list = new ArrayList<String>();{
  13.  
  14. list.add(new String(ItemStack(Material.DIAMOND)));{
  15. list.add(new String(ItemStack(Material.EMERALD)));
  16. list.add(new String(ItemStack(Material.GOLD_INGOT)));
  17. list.add(new String(ItemStack(Material.IRON_INGOT)));
  18. Collections.shuffle(list);
  19.  
  20. String result = list.get(0);//これを持ってくる。
  21. }
  22. }
  23.  
  24. }
  25.  
  26. private static String ItemStack(Material diamond) {
  27. return null;
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement