Advertisement
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, "7lBergarbeiter", 0, 30, "7lBergarbeiter: \nflHallo al%player flich brauche deine Hilfe, \nmein Werkzeug ist nach dem Minenunglck\nverschwunden. Wie soll ich denn jetzt die\nMine frei bekommen!?", "r\n7lQuest: elWahrer Helfer\nrr\n7lDeine Aufgabe:\nrrr\nalBringe dem 7lBergarbeiter\naleine 7lSpitzhacke alund aleine\n7lSchaufelal.\nrrrr\n7lZeitlimit:\nal30 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
Advertisement