tutorial tasks reset
This commit is contained in:
parent
d7658f3838
commit
392ab601c2
@ -48,9 +48,9 @@ import mineplex.game.clans.economy.GoldManager;
|
||||
*/
|
||||
public abstract class Tutorial implements ScoreboardElement, Listener
|
||||
{
|
||||
public static String TASK_COMPLETE_TASK = "tutorialboughtought%sTask%s";
|
||||
public static String TUTORIAL_COMPLETE_TASK = "tutorialboughtought%sDone"; //do not change
|
||||
public static String SKIPPED_TASK = "tutorialboughtought%sSkip";
|
||||
public static String TASK_COMPLETE_TASK = "TuToRialEE%sTask%s";
|
||||
public static String TUTORIAL_COMPLETE_TASK = "TuToRialEE%sDone"; //do not change
|
||||
public static String SKIPPED_TASK = "TuToRialEE%sSkip";
|
||||
|
||||
protected final TutorialManager _manager;
|
||||
protected final GoldManager _goldManager;
|
||||
|
@ -78,7 +78,7 @@ public class TaskEquipClass extends TutorialTask<TutorialGettingStarted>
|
||||
return;
|
||||
}
|
||||
|
||||
if (!TaskManager.Instance.hasCompletedTask(event.getPlayer(), "tutorialboughtought" + event.getMaterial().name()) && !_bought.contains(event.getMaterial()))
|
||||
if (!TaskManager.Instance.hasCompletedTask(event.getPlayer(), "TuToRialEE" + event.getMaterial().name()) && !_bought.contains(event.getMaterial()))
|
||||
{
|
||||
event.setBuyPrice(0);
|
||||
event.setSellPrice(0);
|
||||
@ -109,7 +109,7 @@ public class TaskEquipClass extends TutorialTask<TutorialGettingStarted>
|
||||
public void run(Boolean data)
|
||||
{
|
||||
}
|
||||
}, event.getPlayer(), "tutorialboughtought" + event.getItem().getType().name());
|
||||
}, event.getPlayer(), "TuToRialEE" + event.getItem().getType().name());
|
||||
_bought.add(event.getItem().getType());
|
||||
}
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ public class TaskUseAbility extends TutorialTask<TutorialGettingStarted>
|
||||
return;
|
||||
}
|
||||
|
||||
if (!TaskManager.Instance.hasCompletedTask(event.getPlayer(), "tutorialboughtought" + event.getMaterial().name()) && !_bought.contains(event.getMaterial()))
|
||||
if (!TaskManager.Instance.hasCompletedTask(event.getPlayer(), "TuToRialEE" + event.getMaterial().name()) && !_bought.contains(event.getMaterial()))
|
||||
{
|
||||
event.setBuyPrice(0);
|
||||
event.setSellPrice(0);
|
||||
@ -101,7 +101,7 @@ public class TaskUseAbility extends TutorialTask<TutorialGettingStarted>
|
||||
public void run(Boolean data)
|
||||
{
|
||||
}
|
||||
}, event.getPlayer(), "tutorialboughtought" + event.getItem().getType().name());
|
||||
}, event.getPlayer(), "TuToRialEE" + event.getItem().getType().name());
|
||||
_bought.add(event.getItem().getType());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user