aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com
diff options
context:
space:
mode:
authorLMBishop <13875753+LMBishop@users.noreply.github.com>2021-06-02 17:06:10 +0100
committerLMBishop <13875753+LMBishop@users.noreply.github.com>2021-06-02 17:06:10 +0100
commitfe9efe3ad46bff4f3c9665f9681a7021fdf5c57e (patch)
tree9e0f07b1006d9b01e1f872593f0671131b62af90 /src/main/java/com
parent1ccdeeb93567ff9eeeb9c65963801eb13388f525 (diff)
Add about command & links to contributors
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/leonardobishop/quests/commands/CommandQuests.java12
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/TaskUtils.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/BreedingTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/BrewingTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/BuildingCertainTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/BuildingTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/CommandTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/DealDamageTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/DistancefromTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/EnchantingTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/ExpEarnTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/FarmingTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/FishingTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/InventoryTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/MilkingTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/MiningCertainTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/MiningTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/MobkillingCertainTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/MobkillingTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/PermissionTaskType.java3
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/PlayerkillingTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/PlaytimeTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/PositionTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/ShearingTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/TamingTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/WalkingTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/ASkyBlockLevelType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/BentoBoxLevelTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/CitizensDeliverTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/CitizensInteractTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/EssentialsBalanceTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/EssentialsMoneyEarnTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/IridiumSkyblockValueType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/MythicMobsKillingType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/PlaceholderAPIEvaluateTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/ShopGUIPlusBuyCertainTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/ShopGUIPlusSellCertainTaskType.java2
-rw-r--r--src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/uSkyBlockLevelType.java2
38 files changed, 50 insertions, 37 deletions
diff --git a/src/main/java/com/leonardobishop/quests/commands/CommandQuests.java b/src/main/java/com/leonardobishop/quests/commands/CommandQuests.java
index 742b5592..c6bc0d9c 100644
--- a/src/main/java/com/leonardobishop/quests/commands/CommandQuests.java
+++ b/src/main/java/com/leonardobishop/quests/commands/CommandQuests.java
@@ -141,6 +141,15 @@ public class CommandQuests implements TabExecutor {
} else if (args[1].equalsIgnoreCase("wiki")) {
sender.sendMessage(ChatColor.RED + "Link to Quests wiki: " + ChatColor.GRAY + "https://github.com/LMBishop/Quests/wiki");
return true;
+ } else if (args[1].equalsIgnoreCase("about")) {
+ sender.sendMessage(ChatColor.RED + "Quests " + ChatColor.BOLD + "v" + plugin.getDescription().getVersion());
+ sender.sendMessage(ChatColor.DARK_GRAY + " - " + ChatColor.RED + "Source code: " + ChatColor.GRAY + "https://github.com/LMBishop/Quests/");
+ sender.sendMessage(ChatColor.DARK_GRAY + " - " + ChatColor.RED + "Report an issue: " + ChatColor.GRAY + "https://github.com/LMBishop/Quests/issues");
+ sender.sendMessage(ChatColor.DARK_GRAY + " - " + ChatColor.RED + "Wiki: " + ChatColor.GRAY + "https://github.com/LMBishop/Quests/wiki");
+ sender.sendMessage(ChatColor.DARK_GRAY + " - " + ChatColor.RED + "Licensed under the GPLv3");
+ sender.sendMessage(ChatColor.GRAY + "Many contributors have written source code and task types for Quests," +
+ " please see the GitHub link for an up-to-date list of contributors.");
+ return true;
}
} else if (args.length == 3) {
if (args[1].equalsIgnoreCase("opengui")) {
@@ -571,6 +580,7 @@ public class CommandQuests implements TabExecutor {
sender.sendMessage(ChatColor.DARK_GRAY + " * " + ChatColor.RED + "/quests a itemstack " + ChatColor.DARK_GRAY + ": print information about the current held ItemStack");
sender.sendMessage(ChatColor.DARK_GRAY + " * " + ChatColor.RED + "/quests a update " + ChatColor.DARK_GRAY + ": check for updates");
sender.sendMessage(ChatColor.DARK_GRAY + " * " + ChatColor.RED + "/quests a wiki " + ChatColor.DARK_GRAY + ": get a link to the Quests wiki");
+ sender.sendMessage(ChatColor.DARK_GRAY + " * " + ChatColor.RED + "/quests a about " + ChatColor.DARK_GRAY + ": get information about Quests");
}
sender.sendMessage(ChatColor.GRAY.toString() + ChatColor.STRIKETHROUGH + "-----=[" + ChatColor.RED + " requires permission: quests.admin " +
ChatColor.GRAY.toString() + ChatColor.STRIKETHROUGH + "]=-----");
@@ -619,7 +629,7 @@ public class CommandQuests implements TabExecutor {
return tabCompleteQuests(args[1]);
} else if (args[0].equalsIgnoreCase("a") || args[0].equalsIgnoreCase("admin")
&& sender.hasPermission("quests.admin")) {
- List<String> options = Arrays.asList("opengui", "moddata", "types", "reload", "update", "config", "info", "wiki");
+ List<String> options = Arrays.asList("opengui", "moddata", "types", "reload", "update", "config", "info", "wiki", "about");
return matchTabComplete(args[1], options);
}
} else if (args.length == 3) {
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/TaskUtils.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/TaskUtils.java
index f7f2768b..fe9e9506 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/TaskUtils.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/TaskUtils.java
@@ -8,6 +8,8 @@ import java.util.List;
public class TaskUtils {
+ public static String TASK_ATTRIBUTION_STRING = "<built-in>";
+
public static boolean validateWorld(Player player, Task task) {
return validateWorld(player.getLocation().getWorld().getName(), task.getConfigValue("worlds"));
}
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/BreedingTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/BreedingTaskType.java
index 97b4dc78..f087723a 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/BreedingTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/BreedingTaskType.java
@@ -27,7 +27,7 @@ public final class BreedingTaskType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public BreedingTaskType() {
- super("breeding", "toasted", "Breed a set amount of animals.");
+ super("breeding", TaskUtils.TASK_ATTRIBUTION_STRING, "Breed a set amount of animals.");
this.creatorConfigValues.add(new ConfigValue("amount", true, "Amount of animals to be bred"));
this.creatorConfigValues.add(new ConfigValue("worlds", false, "Permitted worlds the player must be in."));
}
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/BrewingTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/BrewingTaskType.java
index b43a4bd7..51956bb6 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/BrewingTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/BrewingTaskType.java
@@ -33,7 +33,7 @@ public final class BrewingTaskType extends TaskType {
private HashMap<Location, UUID> brewingStands = new HashMap<>();
public BrewingTaskType() {
- super("brewing", "LMBishop", "Brew a potion.");
+ super("brewing", TaskUtils.TASK_ATTRIBUTION_STRING, "Brew a potion.");
this.creatorConfigValues.add(new ConfigValue("amount", true, "Amount of potions to be brewed."));
this.creatorConfigValues.add(new ConfigValue("worlds", false, "Permitted worlds the player must be in."));
}
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/BuildingCertainTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/BuildingCertainTaskType.java
index 29a2d14c..69e2c704 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/BuildingCertainTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/BuildingCertainTaskType.java
@@ -27,7 +27,7 @@ public final class BuildingCertainTaskType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public BuildingCertainTaskType() {
- super("blockplacecertain", "LMBishop", "Place a set amount of a specific block.");
+ super("blockplacecertain", TaskUtils.TASK_ATTRIBUTION_STRING, "Place a set amount of a specific block.");
this.creatorConfigValues.add(new ConfigValue("amount", true, "Amount of blocks to be placed."));
this.creatorConfigValues.add(new ConfigValue("block", true, "Name or ID of block."));
this.creatorConfigValues.add(new ConfigValue("data", false, "Data code for block."));
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/BuildingTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/BuildingTaskType.java
index 4e782baf..d46d2170 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/BuildingTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/BuildingTaskType.java
@@ -24,7 +24,7 @@ public final class BuildingTaskType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public BuildingTaskType() {
- super("blockplace", "LMBishop", "Place a set amount of blocks.");
+ super("blockplace", TaskUtils.TASK_ATTRIBUTION_STRING, "Place a set amount of blocks.");
this.creatorConfigValues.add(new ConfigValue("amount", true, "Amount of blocks to be placed."));
this.creatorConfigValues.add(new ConfigValue("worlds", false, "Permitted worlds the player must be in."));
}
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/CommandTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/CommandTaskType.java
index 96044896..c45a1f34 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/CommandTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/CommandTaskType.java
@@ -25,7 +25,7 @@ public final class CommandTaskType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public CommandTaskType() {
- super("command", "LMBishop", "Execute a certain command.");
+ super("command", TaskUtils.TASK_ATTRIBUTION_STRING, "Execute a certain command.");
this.creatorConfigValues.add(new ConfigValue("command", true, "The command to execute."));
this.creatorConfigValues.add(new ConfigValue("ignore-case", false, "Ignore the casing of the command."));
this.creatorConfigValues.add(new ConfigValue("worlds", false, "Permitted worlds the player must be in."));
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/DealDamageTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/DealDamageTaskType.java
index 8bfd2bba..b9ec23ab 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/DealDamageTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/DealDamageTaskType.java
@@ -25,7 +25,7 @@ public final class DealDamageTaskType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public DealDamageTaskType() {
- super("dealdamage", "toasted", "Deal a certain amount of damage.");
+ super("dealdamage", TaskUtils.TASK_ATTRIBUTION_STRING, "Deal a certain amount of damage.");
this.creatorConfigValues.add(new ConfigValue("amount", true, "Amount of damage you need to deal"));
this.creatorConfigValues.add(new ConfigValue("worlds", false, "Permitted worlds the player must be in."));
}
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/DistancefromTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/DistancefromTaskType.java
index c03a8925..a57194e2 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/DistancefromTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/DistancefromTaskType.java
@@ -28,7 +28,7 @@ public final class DistancefromTaskType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public DistancefromTaskType() {
- super("distancefrom", "LMBishop", "Distance yourself from a set of co-ordinates.");
+ super("distancefrom", TaskUtils.TASK_ATTRIBUTION_STRING, "Distance yourself from a set of co-ordinates.");
this.creatorConfigValues.add(new ConfigValue("x", true, "X position."));
this.creatorConfigValues.add(new ConfigValue("y", true, "Y position."));
this.creatorConfigValues.add(new ConfigValue("z", true, "Z position."));
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/EnchantingTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/EnchantingTaskType.java
index 457e9991..76ff574a 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/EnchantingTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/EnchantingTaskType.java
@@ -25,7 +25,7 @@ public final class EnchantingTaskType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public EnchantingTaskType() {
- super("enchanting", "toasted", "Enchant a certain amount of items.");
+ super("enchanting", TaskUtils.TASK_ATTRIBUTION_STRING, "Enchant a certain amount of items.");
this.creatorConfigValues.add(new ConfigValue("amount", true, "Amount of items you need to enchant."));
this.creatorConfigValues.add(new ConfigValue("worlds", false, "Permitted worlds the player must be in."));
}
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/ExpEarnTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/ExpEarnTaskType.java
index c387fe73..7eb58d8a 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/ExpEarnTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/ExpEarnTaskType.java
@@ -24,7 +24,7 @@ public final class ExpEarnTaskType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public ExpEarnTaskType() {
- super("expearn", "toasted", "Earn a set amount of exp.");
+ super("expearn", TaskUtils.TASK_ATTRIBUTION_STRING, "Earn a set amount of exp.");
this.creatorConfigValues.add(new ConfigValue("amount", true, "Amount of exp that needs to be earned."));
this.creatorConfigValues.add(new ConfigValue("worlds", false, "Permitted worlds the player must be in."));
}
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/FarmingTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/FarmingTaskType.java
index 23f4f561..e79164b8 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/FarmingTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/FarmingTaskType.java
@@ -24,7 +24,7 @@ public final class FarmingTaskType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public FarmingTaskType() {
- super("farming", "LMBishop", "Break a set amount of a crop.");
+ super("farming", TaskUtils.TASK_ATTRIBUTION_STRING, "Break a set amount of a crop.");
this.creatorConfigValues.add(new ConfigValue("amount", true, "Amount of crops to be broken."));
this.creatorConfigValues.add(new ConfigValue("crop", true, "Name or ID of crop."));
this.creatorConfigValues.add(new ConfigValue("worlds", false, "Permitted worlds the player must be in."));
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/FishingTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/FishingTaskType.java
index 876957a3..419886a1 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/FishingTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/FishingTaskType.java
@@ -25,7 +25,7 @@ public final class FishingTaskType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public FishingTaskType() {
- super("fishing", "LMBishop", "Catch a set amount of items from the sea.");
+ super("fishing", TaskUtils.TASK_ATTRIBUTION_STRING, "Catch a set amount of items from the sea.");
this.creatorConfigValues.add(new ConfigValue("amount", true, "Amount of fish to be caught."));
this.creatorConfigValues.add(new ConfigValue("worlds", false, "Permitted worlds the player must be in."));
}
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/InventoryTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/InventoryTaskType.java
index bc7c8534..c2bdcff6 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/InventoryTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/InventoryTaskType.java
@@ -32,7 +32,7 @@ public final class InventoryTaskType extends TaskType {
private final Quests plugin;
public InventoryTaskType(Quests plugin) {
- super("inventory", "LMBishop", "Obtain a set of items.");
+ super("inventory", TaskUtils.TASK_ATTRIBUTION_STRING, "Obtain a set of items.");
this.plugin = plugin;
this.creatorConfigValues.add(new ConfigValue("amount", true, "Amount of item to retrieve."));
this.creatorConfigValues.add(new ConfigValue("item", true, "Name or ID of item."));
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/MilkingTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/MilkingTaskType.java
index 2528fb02..d3ade307 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/MilkingTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/MilkingTaskType.java
@@ -27,7 +27,7 @@ public final class MilkingTaskType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public MilkingTaskType() {
- super("milking", "LMBishop", "Milk a set amount of cows.");
+ super("milking", TaskUtils.TASK_ATTRIBUTION_STRING, "Milk a set amount of cows.");
this.creatorConfigValues.add(new ConfigValue("amount", true, "Amount of cows to be milked."));
this.creatorConfigValues.add(new ConfigValue("worlds", false, "Permitted worlds the player must be in."));
}
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/MiningCertainTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/MiningCertainTaskType.java
index 938fa9bd..24e2cb99 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/MiningCertainTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/MiningCertainTaskType.java
@@ -29,7 +29,7 @@ public final class MiningCertainTaskType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public MiningCertainTaskType(Quests plugin) {
- super("blockbreakcertain", "LMBishop", "Break a set amount of a specific block.");
+ super("blockbreakcertain", TaskUtils.TASK_ATTRIBUTION_STRING, "Break a set amount of a specific block.");
this.plugin = plugin;
this.creatorConfigValues.add(new ConfigValue("amount", true, "Amount of blocks to be broken."));
this.creatorConfigValues.add(new ConfigValue("block", true, "Name or ID of block.", "block")); // Can use name:datacode
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/MiningTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/MiningTaskType.java
index 9222e699..7a9b5041 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/MiningTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/MiningTaskType.java
@@ -25,7 +25,7 @@ public final class MiningTaskType extends TaskType {
public MiningTaskType() {
// type, author, description
- super("blockbreak", "LMBishop", "Break a set amount of blocks.");
+ super("blockbreak", TaskUtils.TASK_ATTRIBUTION_STRING, "Break a set amount of blocks.");
// config values for the quest creator to use, if unspecified then the quest creator will not know what to put here (and will require users to
// go into the config and manually configure there)
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/MobkillingCertainTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/MobkillingCertainTaskType.java
index 47e4a1a4..f31fcdf7 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/MobkillingCertainTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/MobkillingCertainTaskType.java
@@ -28,7 +28,7 @@ public final class MobkillingCertainTaskType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public MobkillingCertainTaskType() {
- super("mobkillingcertain", "LMBishop", "Kill a set amount of a specific entity type.");
+ super("mobkillingcertain", TaskUtils.TASK_ATTRIBUTION_STRING, "Kill a set amount of a specific entity type.");
this.creatorConfigValues.add(new ConfigValue("amount", true, "Amount of mobs to be killed."));
this.creatorConfigValues.add(new ConfigValue("mob", true, "Name of mob."));
this.creatorConfigValues.add(new ConfigValue("name", false, "Only allow a specific name for mob (unspecified = any name allowed)."));
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/MobkillingTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/MobkillingTaskType.java
index 8b41f7bd..a9d958b7 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/MobkillingTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/MobkillingTaskType.java
@@ -28,7 +28,7 @@ public final class MobkillingTaskType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public MobkillingTaskType() {
- super("mobkilling", "LMBishop", "Kill a set amount of entities.");
+ super("mobkilling", TaskUtils.TASK_ATTRIBUTION_STRING, "Kill a set amount of entities.");
this.creatorConfigValues.add(new ConfigValue("amount", true, "Amount of mobs to be killed."));
this.creatorConfigValues.add(new ConfigValue("hostile", false, "Only allow hostile or non-hostile mobs (unspecified = any type allowed)."));
}
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/PermissionTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/PermissionTaskType.java
index 96cb94f7..adf99eb1 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/PermissionTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/PermissionTaskType.java
@@ -10,6 +10,7 @@ import com.leonardobishop.quests.quests.Quest;
import com.leonardobishop.quests.quests.Task;
import com.leonardobishop.quests.quests.tasktypes.ConfigValue;
import com.leonardobishop.quests.quests.tasktypes.TaskType;
+import com.leonardobishop.quests.quests.tasktypes.TaskUtils;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.scheduler.BukkitRunnable;
@@ -25,7 +26,7 @@ public final class PermissionTaskType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public PermissionTaskType(Quests plugin) {
- super("permission", "LMBishop", "Test if a player has a permission");
+ super("permission", TaskUtils.TASK_ATTRIBUTION_STRING, "Test if a player has a permission");
this.plugin = plugin;
this.creatorConfigValues.add(new ConfigValue("permission", true, "The required permission."));
}
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/PlayerkillingTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/PlayerkillingTaskType.java
index 3aa326dc..94124a88 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/PlayerkillingTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/PlayerkillingTaskType.java
@@ -26,7 +26,7 @@ public final class PlayerkillingTaskType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public PlayerkillingTaskType() {
- super("playerkilling", "LMBishop", "Kill a set amount of players.");
+ super("playerkilling", TaskUtils.TASK_ATTRIBUTION_STRING, "Kill a set amount of players.");
this.creatorConfigValues.add(new ConfigValue("amount", true, "Amount of players to be killed."));
}
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/PlaytimeTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/PlaytimeTaskType.java
index c3fe7733..03ae29c8 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/PlaytimeTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/PlaytimeTaskType.java
@@ -28,7 +28,7 @@ public final class PlaytimeTaskType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public PlaytimeTaskType(Quests plugin) {
- super("playtime", "Reinatix", "Track the amount of playing time a user has been on");
+ super("playtime", TaskUtils.TASK_ATTRIBUTION_STRING, "Track the amount of playing time a user has been on");
this.plugin = plugin;
this.creatorConfigValues.add(new ConfigValue("minutes", true, "Time in minutes."));
}
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/PositionTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/PositionTaskType.java
index 862a74e0..b96340a7 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/PositionTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/PositionTaskType.java
@@ -28,7 +28,7 @@ public final class PositionTaskType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public PositionTaskType() {
- super("position", "LMBishop", "Reach a set of co-ordinates.");
+ super("position", TaskUtils.TASK_ATTRIBUTION_STRING, "Reach a set of co-ordinates.");
this.creatorConfigValues.add(new ConfigValue("x", true, "X position."));
this.creatorConfigValues.add(new ConfigValue("y", true, "Y position."));
this.creatorConfigValues.add(new ConfigValue("z", true, "Z position."));
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/ShearingTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/ShearingTaskType.java
index 2ed0775b..712ffcac 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/ShearingTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/ShearingTaskType.java
@@ -26,7 +26,7 @@ public final class ShearingTaskType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public ShearingTaskType() {
- super("shearing", "LMBishop", "Shear a set amount of sheep.");
+ super("shearing", TaskUtils.TASK_ATTRIBUTION_STRING, "Shear a set amount of sheep.");
this.creatorConfigValues.add(new ConfigValue("amount", true, "Amount of cows to be milked."));
}
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/TamingTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/TamingTaskType.java
index 66f96e9e..a1389e8d 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/TamingTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/TamingTaskType.java
@@ -25,7 +25,7 @@ public final class TamingTaskType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public TamingTaskType() {
- super("taming", "LMBishop", "Tame a set amount of animals.");
+ super("taming", TaskUtils.TASK_ATTRIBUTION_STRING, "Tame a set amount of animals.");
this.creatorConfigValues.add(new ConfigValue("amount", true, "Amount of animals to be tamed."));
}
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/WalkingTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/WalkingTaskType.java
index be8d08b9..b0ae7196 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/WalkingTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/WalkingTaskType.java
@@ -25,7 +25,7 @@ public final class WalkingTaskType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public WalkingTaskType() {
- super("walking", "LMBishop", "Walk a set distance.");
+ super("walking", TaskUtils.TASK_ATTRIBUTION_STRING, "Walk a set distance.");
this.creatorConfigValues.add(new ConfigValue("distance", true, "Amount of meters (blocks) to be travelled."));
}
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/ASkyBlockLevelType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/ASkyBlockLevelType.java
index 9ebc31c2..1cdddb53 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/ASkyBlockLevelType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/ASkyBlockLevelType.java
@@ -24,7 +24,7 @@ public final class ASkyBlockLevelType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public ASkyBlockLevelType() {
- super("askyblock_level", "LMBishop", "Reach a certain island level for ASkyBlock.");
+ super("askyblock_level", TaskUtils.TASK_ATTRIBUTION_STRING, "Reach a certain island level for ASkyBlock.");
this.creatorConfigValues.add(new ConfigValue("level", true, "Minimum island level needed."));
}
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/BentoBoxLevelTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/BentoBoxLevelTaskType.java
index c6621f97..a8d678e9 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/BentoBoxLevelTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/BentoBoxLevelTaskType.java
@@ -31,7 +31,7 @@ public final class BentoBoxLevelTaskType extends TaskType {
private Field levelField = null;
public BentoBoxLevelTaskType() {
- super("bentobox_level", "Rodney_Mc_Kay", "Reach a certain island level in the level addon for BentoBox.");
+ super("bentobox_level", TaskUtils.TASK_ATTRIBUTION_STRING, "Reach a certain island level in the level addon for BentoBox.");
this.creatorConfigValues.add(new ConfigValue("level", true, "Minimum island level needed."));
}
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/CitizensDeliverTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/CitizensDeliverTaskType.java
index 8afe3a4d..06575e67 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/CitizensDeliverTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/CitizensDeliverTaskType.java
@@ -31,7 +31,7 @@ public final class CitizensDeliverTaskType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public CitizensDeliverTaskType(Quests plugin) {
- super("citizens_deliver", "LMBishop", "Deliver a set of items to a NPC.");
+ super("citizens_deliver", TaskUtils.TASK_ATTRIBUTION_STRING, "Deliver a set of items to a NPC.");
this.plugin = plugin;
this.creatorConfigValues.add(new ConfigValue("amount", true, "Amount of item to retrieve."));
this.creatorConfigValues.add(new ConfigValue("item", true, "Name or ID of item."));
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/CitizensInteractTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/CitizensInteractTaskType.java
index 3ce7bb01..6ecaa863 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/CitizensInteractTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/CitizensInteractTaskType.java
@@ -25,7 +25,7 @@ public final class CitizensInteractTaskType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public CitizensInteractTaskType() {
- super("citizens_interact", "LMBishop", "Interact with an NPC to complete the quest.");
+ super("citizens_interact", TaskUtils.TASK_ATTRIBUTION_STRING, "Interact with an NPC to complete the quest.");
this.creatorConfigValues.add(new ConfigValue("npc-name", true, "Name of the NPC."));
this.creatorConfigValues.add(new ConfigValue("worlds", false, "Permitted worlds the player must be in."));
}
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/EssentialsBalanceTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/EssentialsBalanceTaskType.java
index b110a038..8503f1ed 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/EssentialsBalanceTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/EssentialsBalanceTaskType.java
@@ -29,7 +29,7 @@ public class EssentialsBalanceTaskType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public EssentialsBalanceTaskType() {
- super("essentials_balance", "LMBishop", "Reach a set amount of money.");
+ super("essentials_balance", TaskUtils.TASK_ATTRIBUTION_STRING, "Reach a set amount of money.");
this.creatorConfigValues.add(new ConfigValue("amount", true, "Amount of money to reach."));
}
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/EssentialsMoneyEarnTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/EssentialsMoneyEarnTaskType.java
index ea517e7d..c4d91525 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/EssentialsMoneyEarnTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/EssentialsMoneyEarnTaskType.java
@@ -25,7 +25,7 @@ public class EssentialsMoneyEarnTaskType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public EssentialsMoneyEarnTaskType() {
- super("essentials_moneyearn", "LMBishop", "Earn a set amount of money.");
+ super("essentials_moneyearn", TaskUtils.TASK_ATTRIBUTION_STRING, "Earn a set amount of money.");
this.creatorConfigValues.add(new ConfigValue("amount", true, "Amount of money to earn."));
}
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/IridiumSkyblockValueType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/IridiumSkyblockValueType.java
index 611a0d47..7eef802d 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/IridiumSkyblockValueType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/IridiumSkyblockValueType.java
@@ -26,7 +26,7 @@ public final class IridiumSkyblockValueType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public IridiumSkyblockValueType() {
- super("iridiumskyblock_value", "LMBishop", "Reach a certain island value for Iridium Skyblock.");
+ super("iridiumskyblock_value", TaskUtils.TASK_ATTRIBUTION_STRING, "Reach a certain island value for Iridium Skyblock.");
this.creatorConfigValues.add(new ConfigValue("value", true, "Minimum island value needed."));
}
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/MythicMobsKillingType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/MythicMobsKillingType.java
index e98501cd..11421126 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/MythicMobsKillingType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/MythicMobsKillingType.java
@@ -26,7 +26,7 @@ public final class MythicMobsKillingType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public MythicMobsKillingType() {
- super("mythicmobs_killing", "LMBishop", "Kill a set amount of a MythicMobs entity.");
+ super("mythicmobs_killing", TaskUtils.TASK_ATTRIBUTION_STRING, "Kill a set amount of a MythicMobs entity.");
this.creatorConfigValues.add(new ConfigValue("amount", true, "Amount of mobs to be killed."));
this.creatorConfigValues.add(new ConfigValue("name", true, "The 'internal name' of the MythicMob."));
}
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/PlaceholderAPIEvaluateTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/PlaceholderAPIEvaluateTaskType.java
index 9932ac5a..58b45636 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/PlaceholderAPIEvaluateTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/PlaceholderAPIEvaluateTaskType.java
@@ -29,7 +29,7 @@ public final class PlaceholderAPIEvaluateTaskType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public PlaceholderAPIEvaluateTaskType(Quests plugin) {
- super("placeholderapi_evaluate", "LMBishop", "Evaluate the result of a placeholder");
+ super("placeholderapi_evaluate", TaskUtils.TASK_ATTRIBUTION_STRING, "Evaluate the result of a placeholder");
this.plugin = plugin;
this.creatorConfigValues.add(new ConfigValue("placeholder", true, "The placeholder string (including %%)."));
this.creatorConfigValues.add(new ConfigValue("evaluates", true, "What it should evaluate to be marked as complete."));
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/ShopGUIPlusBuyCertainTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/ShopGUIPlusBuyCertainTaskType.java
index 417df314..a8df4ab0 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/ShopGUIPlusBuyCertainTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/ShopGUIPlusBuyCertainTaskType.java
@@ -22,7 +22,7 @@ import java.util.List;
public class ShopGUIPlusBuyCertainTaskType extends TaskType {
public ShopGUIPlusBuyCertainTaskType() {
- super("shopguiplus_buycertain", "LMBishop", "Purchase a given item from a ShopGUI+ shop");
+ super("shopguiplus_buycertain", TaskUtils.TASK_ATTRIBUTION_STRING, "Purchase a given item from a ShopGUI+ shop");
}
@Override
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/ShopGUIPlusSellCertainTaskType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/ShopGUIPlusSellCertainTaskType.java
index 623b2199..ee1276ec 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/ShopGUIPlusSellCertainTaskType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/ShopGUIPlusSellCertainTaskType.java
@@ -22,7 +22,7 @@ import java.util.List;
public class ShopGUIPlusSellCertainTaskType extends TaskType {
public ShopGUIPlusSellCertainTaskType() {
- super("shopguiplus_sellcertain", "LMBishop", "Sell a given item from to a ShopGUI+ shop");
+ super("shopguiplus_sellcertain", TaskUtils.TASK_ATTRIBUTION_STRING, "Sell a given item from to a ShopGUI+ shop");
}
@Override
diff --git a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/uSkyBlockLevelType.java b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/uSkyBlockLevelType.java
index a45653dd..0aa58d84 100644
--- a/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/uSkyBlockLevelType.java
+++ b/src/main/java/com/leonardobishop/quests/quests/tasktypes/types/dependent/uSkyBlockLevelType.java
@@ -24,7 +24,7 @@ public final class uSkyBlockLevelType extends TaskType {
private List<ConfigValue> creatorConfigValues = new ArrayList<>();
public uSkyBlockLevelType() {
- super("uskyblock_level", "LMBishop", "Reach a certain island level for uSkyBlock.");
+ super("uskyblock_level", TaskUtils.TASK_ATTRIBUTION_STRING, "Reach a certain island level for uSkyBlock.");
this.creatorConfigValues.add(new ConfigValue("level", true, "Minimum island level needed."));
}