Fixed tutorial tasks that rely on territory entrances not working because formatting...

This commit is contained in:
NewGarbo 2015-10-21 20:14:35 +01:00
parent 112f34c77f
commit bf406493e3

View File

@ -66,15 +66,15 @@ public class TutorialGettingStarted extends Tutorial
public void onEnterTerritory(Player player, String ownerString)
{
if (isInTutorial(player) && ownerString.endsWith("Spawn") && get(player).hasFinishedPart(getPart(2)) && !get(player).hasFinishedPart(getPart(3)))
if (isInTutorial(player) && ownerString.contains("Spawn") && get(player).hasFinishedPart(getPart(2)) && !get(player).hasFinishedPart(getPart(3)))
{
getPart(3).getWaiter().consume(player);
}
else if (isInTutorial(player) && ownerString.endsWith("Wilderness") && get(player).hasFinishedPart(getPart(3)) && !get(player).hasFinishedPart(getPart(4)))
else if (isInTutorial(player) && ownerString.contains("Wilderness") && get(player).hasFinishedPart(getPart(3)) && !get(player).hasFinishedPart(getPart(4)))
{
getPart(4).getWaiter().consume(player);
}
else if (isInTutorial(player) && ownerString.endsWith("Shops") && get(player).hasFinishedPart(getPart(5)) && !get(player).hasFinishedPart(getPart(6)))
else if (isInTutorial(player) && ownerString.contains("Shops") && get(player).hasFinishedPart(getPart(5)) && !get(player).hasFinishedPart(getPart(6)))
{
getPart(6).getWaiter().consume(player);
}