Adhere to line width

This commit is contained in:
PikaMug 2019-11-08 01:05:17 -05:00
parent be3248eeea
commit a0c7167365
2 changed files with 8 additions and 6 deletions

View File

@ -518,7 +518,8 @@ public class Quester {
plugin.showObjectives(q, this, false); plugin.showObjectives(q, this, false);
String stageStartMessage = stage.startMessage; String stageStartMessage = stage.startMessage;
if (stageStartMessage != null) { if (stageStartMessage != null) {
getPlayer().sendMessage(ConfigUtil.parseStringWithPossibleLineBreaks(stageStartMessage, q, getPlayer())); getPlayer().sendMessage(ConfigUtil
.parseStringWithPossibleLineBreaks(stageStartMessage, q, getPlayer()));
} }
if (stage.chatEvents.isEmpty() == false) { if (stage.chatEvents.isEmpty() == false) {
for (String chatTrigger : stage.chatEvents.keySet()) { for (String chatTrigger : stage.chatEvents.keySet()) {
@ -1915,13 +1916,13 @@ public class Quester {
if (index >= getQuestData(quest).hasReached.size()) { if (index >= getQuestData(quest).hasReached.size()) {
getQuestData(quest).hasReached.add(true); getQuestData(quest).hasReached.add(true);
finishObjective(quest, "reachLocation", new ItemStack(Material.AIR, 1), finishObjective(quest, "reachLocation", new ItemStack(Material.AIR, 1),
new ItemStack(Material.AIR, 1), null, null, null, null, location, null, null, new ItemStack(Material.AIR, 1), null, null, null, null, location, null,
null); null, null);
} else if (getQuestData(quest).hasReached.get(index) == false) { } else if (getQuestData(quest).hasReached.get(index) == false) {
getQuestData(quest).hasReached.set(index, true); getQuestData(quest).hasReached.set(index, true);
finishObjective(quest, "reachLocation", new ItemStack(Material.AIR, 1), finishObjective(quest, "reachLocation", new ItemStack(Material.AIR, 1),
new ItemStack(Material.AIR, 1), null, null, null, null, location, null, null, new ItemStack(Material.AIR, 1), null, null, null, null, location, null,
null); null, null);
} }
// Multiplayer // Multiplayer

View File

@ -382,7 +382,8 @@ public class CmdExecutor implements CommandExecutor {
} }
if (reqs.getMcmmoSkills().isEmpty() == false) { if (reqs.getMcmmoSkills().isEmpty() == false) {
for (String skill : reqs.getMcmmoSkills()) { for (String skill : reqs.getMcmmoSkills()) {
int level = plugin.getDependencies().getMcmmoSkillLevel(Quests.getMcMMOSkill(skill), player.getName()); int level = plugin.getDependencies().getMcmmoSkillLevel(Quests
.getMcMMOSkill(skill), player.getName());
int req = reqs.getMcmmoAmounts().get(reqs.getMcmmoSkills().indexOf(skill)); int req = reqs.getMcmmoAmounts().get(reqs.getMcmmoSkills().indexOf(skill));
String skillName = MiscUtil.getCapitalized(skill); String skillName = MiscUtil.getCapitalized(skill);
if (level >= req) { if (level >= req) {