mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-24 19:46:34 +01:00
Remove old code
This commit is contained in:
parent
b03d84443b
commit
a58b51b469
@ -64,8 +64,6 @@ public class Quest {
|
|||||||
List<String> commands = new LinkedList<String>();
|
List<String> commands = new LinkedList<String>();
|
||||||
List<String> permissions = new LinkedList<String>();
|
List<String> permissions = new LinkedList<String>();
|
||||||
LinkedList<ItemStack> itemRewards = new LinkedList<ItemStack>();
|
LinkedList<ItemStack> itemRewards = new LinkedList<ItemStack>();
|
||||||
LinkedList<Integer> rpgItemRewardIDs = new LinkedList<Integer>();
|
|
||||||
LinkedList<Integer> rpgItemRewardAmounts = new LinkedList<Integer>();
|
|
||||||
List<String> mcmmoSkills = new LinkedList<String>();
|
List<String> mcmmoSkills = new LinkedList<String>();
|
||||||
List<Integer> mcmmoAmounts = new LinkedList<Integer>();
|
List<Integer> mcmmoAmounts = new LinkedList<Integer>();
|
||||||
List<String> heroesClasses = new LinkedList<String>();
|
List<String> heroesClasses = new LinkedList<String>();
|
||||||
@ -233,7 +231,7 @@ public class Quest {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
plugin.getLogger().warning("[Quests] Quester \"" + player.getName() + "\" attempted to take Quest \"" + name + "\", but the Custom Requirement \"" + s + "\" could not be found. Does it still exist?");
|
plugin.getLogger().warning("Quester \"" + player.getName() + "\" attempted to take Quest \"" + name + "\", but the Custom Requirement \"" + s + "\" could not be found. Does it still exist?");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (quester.questPoints < questPointsReq) {
|
if (quester.questPoints < questPointsReq) {
|
||||||
@ -243,7 +241,6 @@ public class Quest {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
for (String q : blockQuests) {
|
for (String q : blockQuests) {
|
||||||
// TODO make sure this works
|
|
||||||
Quest questObject = new Quest();
|
Quest questObject = new Quest();
|
||||||
questObject.name = q;
|
questObject.name = q;
|
||||||
if (quester.completedQuests.contains(q) || quester.currentQuests.containsKey(questObject)) {
|
if (quester.completedQuests.contains(q) || quester.currentQuests.containsKey(questObject)) {
|
||||||
@ -514,12 +511,6 @@ public class Quest {
|
|||||||
if (other.itemRewards.equals(itemRewards) == false) {
|
if (other.itemRewards.equals(itemRewards) == false) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (other.rpgItemRewardIDs.equals(rpgItemRewardIDs) == false) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (other.rpgItemRewardAmounts.equals(rpgItemRewardAmounts) == false) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (other.mcmmoAmounts.equals(mcmmoAmounts) == false) {
|
if (other.mcmmoAmounts.equals(mcmmoAmounts) == false) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -645,8 +636,6 @@ public class Quest {
|
|||||||
hash = 53 * hash + (this.commands != null ? this.commands.hashCode() : 0);
|
hash = 53 * hash + (this.commands != null ? this.commands.hashCode() : 0);
|
||||||
hash = 53 * hash + (this.permissions != null ? this.permissions.hashCode() : 0);
|
hash = 53 * hash + (this.permissions != null ? this.permissions.hashCode() : 0);
|
||||||
hash = 53 * hash + (this.itemRewards != null ? this.itemRewards.hashCode() : 0);
|
hash = 53 * hash + (this.itemRewards != null ? this.itemRewards.hashCode() : 0);
|
||||||
hash = 53 * hash + (this.rpgItemRewardIDs != null ? this.rpgItemRewardIDs.hashCode() : 0);
|
|
||||||
hash = 53 * hash + (this.rpgItemRewardAmounts != null ? this.rpgItemRewardAmounts.hashCode() : 0);
|
|
||||||
hash = 53 * hash + (this.mcmmoSkills != null ? this.mcmmoSkills.hashCode() : 0);
|
hash = 53 * hash + (this.mcmmoSkills != null ? this.mcmmoSkills.hashCode() : 0);
|
||||||
hash = 53 * hash + (this.mcmmoAmounts != null ? this.mcmmoAmounts.hashCode() : 0);
|
hash = 53 * hash + (this.mcmmoAmounts != null ? this.mcmmoAmounts.hashCode() : 0);
|
||||||
hash = 53 * hash + (this.heroesClasses != null ? this.heroesClasses.hashCode() : 0);
|
hash = 53 * hash + (this.heroesClasses != null ? this.heroesClasses.hashCode() : 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user