Advertisement
KmanCrazy

OnEnableMain

Oct 31st, 2014
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. @Override
  2. public void onEnable() {
  3. parts.add(createIcon("Charms", DyeColor.LIGHT_BLUE, ChatColor.BLUE));
  4. parts.add(createIcon("Transfiguration", DyeColor.RED, ChatColor.RED));
  5. parts.add(createIcon("Potions", DyeColor.GREEN,ChatColor.DARK_GREEN));
  6. parts.add(createIcon("Herbology", DyeColor.YELLOW,ChatColor.YELLOW));
  7. parts.add(createIcon("Defense Against the Dark Arts",DyeColor.CYAN,ChatColor.AQUA));
  8. parts.add(createIcon("Dark Arts", DyeColor.BLACK, ChatColor.DARK_GRAY));
  9. parts.add(createIcon("Flying",DyeColor.SILVER,ChatColor.GRAY));
  10. parts.add(createIcon("Divination",DyeColor.PURPLE,ChatColor.DARK_PURPLE));
  11. parts.add(createIcon("Care of Magical Creatures",DyeColor.ORANGE,ChatColor.GOLD));
  12. parts.add(createIcon("History of Magic",Material.REDSTONE_BLOCK,ChatColor.DARK_RED));
  13. parts.add(createIcon("Arithmancy",DyeColor.PINK,ChatColor.LIGHT_PURPLE));
  14. parts.add(createIcon("Ancient Runes",DyeColor.LIME,ChatColor.GREEN));
  15. parts.add(createIcon("Astronomy", DyeColor.BLUE,ChatColor.DARK_BLUE));
  16. parts.add(createIcon("Muggle Studies", DyeColor.WHITE, ChatColor.WHITE));
  17. List<String> strings = new ArrayList<String>();
  18. strings.add("Swag");
  19. strings.add("Slag");
  20. strings.add("Snag");
  21. strings.add("Bag");
  22. QSManager.addQuestion(1, "Charms", QuestionTypes.MC, strings, "danny?");
  23. getServer().getPluginManager().registerEvents(this,this);
  24. QuestionSectionManager.addQuestionSection(23,"Charms");
  25. inv = Bukkit.createInventory(null,27, "Owl Test");
  26. for (ItemStack is : parts){
  27. inv.addItem(is);
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement