Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package de.msgamerhd.lostisland.insel;
- import java.util.ArrayList;
- import org.bukkit.entity.Player;
- import org.bukkit.inventory.ItemStack;
- /**
- * Class created by MsGamerHD on 25.07.2016
- */
- public enum Quests {
- WAHRERHELFER(NPCTypes.BERGARBEITER, "�7�lBergarbeiter", 0, 30, "�7�lBergarbeiter: \n�f�lHallo �a�l%player �f�lich brauche deine Hilfe, \nmein Werkzeug ist nach dem Minenungl�ck\nverschwunden. Wie soll ich denn jetzt die\nMine frei bekommen!?", "�r\n�7�lQuest: �e�lWahrer Helfer\n�r�r\n�7�lDeine Aufgabe:\n�r�r�r\n�a�lBringe dem �7�lBergarbeiter\n�a�leine �7�lSpitzhacke �a�lund �a�leine\n�7�lSchaufel�a�l.\n�r�r�r�r\n�7�lZeitlimit:\n�a�l30 Minuten", 20, Belohnung.wahrerhelfer);
- NPCTypes npc;
- String name;
- int level;
- int zeit;
- String nachricht;
- String beschreibung;
- int belohnungEP;
- ArrayList<ItemStack> belohnungItems;
- private Quests(NPCTypes npc, String name, int level, int zeit, String nachricht, String beschreibung, int belohnungEP, ArrayList<ItemStack> belohnungItems) {
- this.npc = npc;
- this.name = name;
- this.level = level;
- this.zeit = zeit;
- this.nachricht = nachricht;
- this.beschreibung = beschreibung;
- this.belohnungItems = belohnungItems;
- this.belohnungEP = belohnungEP;
- }
- public String getName(){
- return name;
- }
- public int getFreigabeLevel(){
- return level;
- }
- public int getZeitlimit(){
- return zeit;
- }
- public String getNachricht(){
- return nachricht;
- }
- public ArrayList<String> getBeschreibung(){
- ArrayList<String> scores = new ArrayList<>();
- String[] beschreibungarray = beschreibung.split("\n");
- for(int i = 0; i < beschreibungarray.length; i++){
- scores.add(beschreibungarray[i]);
- }
- return scores;
- }
- public int getBelohnungEP(){
- return belohnungEP;
- }
- public ArrayList<ItemStack> getBelohnungItems(){
- return belohnungItems;
- }
- public void addBelohnungItems(Player p){
- if(!getBelohnungItems().isEmpty()){
- for(ItemStack is : getBelohnungItems()){
- p.getInventory().addItem(is);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment