mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-26 19:17:50 +01:00
50 lines
1.1 KiB
Java
50 lines
1.1 KiB
Java
package me.blackvein.quests;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
import org.bukkit.entity.Player;
|
|
|
|
public abstract class CustomReward {
|
|
|
|
private String name = null;
|
|
private String author = null;
|
|
private String rewardName = null;
|
|
public final Map<String, Object> datamap = new HashMap<String, Object>();
|
|
public final Map<String, String> descriptions = new HashMap<String, String>();
|
|
|
|
public abstract void giveReward(Player p, Map<String, Object> m);
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String getAuthor() {
|
|
return author;
|
|
}
|
|
|
|
public void setAuthor(String author) {
|
|
this.author = author;
|
|
}
|
|
|
|
public void addData(String name) {
|
|
datamap.put(name, null);
|
|
}
|
|
|
|
public void addDescription(String data, String description) {
|
|
descriptions.put(data, description);
|
|
}
|
|
|
|
public void setRewardName(String name) {
|
|
rewardName = name;
|
|
}
|
|
|
|
public String getRewardName() {
|
|
return rewardName;
|
|
}
|
|
|
|
}
|