- The "WARNING: Clan energy is running very low" message should appear after I get the Buy Energy objective

- Need a congrats message/title when tutorial is completed
- Force user to claim via gui
This commit is contained in:
phobia 2016-04-03 13:39:32 +10:00
parent 45cbeef83d
commit 5e41c22fc7
4 changed files with 8 additions and 5 deletions

View File

@ -88,7 +88,7 @@ public class ClansMainTutorial extends Tutorial
protected void onFinish(Player player)
{
_fireworks.add(player);
UtilTextMiddle.display(C.cYellow + "Congratulations", "You have completed the Tutorial!", 10, 60, 10);
Bukkit.getScheduler().runTaskLater(getPlugin(), () -> {
_fireworks.remove(player);
getMessage().removePlayer(player);
@ -362,6 +362,7 @@ public class ClansMainTutorial extends Tutorial
|| event.getArguments()[0].equalsIgnoreCase("ally")
|| event.getArguments()[0].equalsIgnoreCase("trust")
|| event.getArguments()[0].equalsIgnoreCase("unclaim")
|| event.getArguments()[0].equalsIgnoreCase("claim")
|| event.getArguments()[0].equalsIgnoreCase("delete")
|| event.getArguments()[0].equalsIgnoreCase("disband")
|| event.getArguments()[0].equalsIgnoreCase("admin")

View File

@ -29,7 +29,7 @@ public class ClaimLandGoal extends ObjectiveGoal<ClanObjective>
"Claim Land using the Clan Menu ( Type /c )",
"The first thing your Clan needs to do before you can start to " +
"build your fortress is claim the land in an area for your Clan. " +
"You must be inside the blue box to claim land.",
"You must be inside the blue outline to claim land.",
DyeColor.ORANGE
);
}

View File

@ -1,5 +1,8 @@
package mineplex.game.clans.tutorial.tutorials.clans.objective.goals.energy;
import mineplex.core.common.util.F;
import mineplex.core.common.util.UtilPlayer;
import mineplex.core.common.util.UtilTextMiddle;
import org.bukkit.DyeColor;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
@ -25,6 +28,8 @@ public class BuyEnergyGoal extends ObjectiveGoal<EnergyObjective>
@Override
protected void customStart(Player player)
{
UtilPlayer.message(player, F.main("Clans", "WARNING: Clan Energy is running very low!"));
UtilTextMiddle.display("Clan Energy", "is running very low", 10, 80, 10, player);
}
@Override

View File

@ -31,9 +31,6 @@ public class ExplainEnergyGoal extends ObjectiveGoal<EnergyObjective>
@Override
protected void customStart(Player player)
{
UtilPlayer.message(player, F.main("Clans", "WARNING: Clan Energy is running very low!"));
UtilTextMiddle.display("Clan Energy", "is running very low", 10, 100, 10, player);
player.playSound(player.getLocation(), Sound.NOTE_BASS, 1.0f, 1.0f);
ClansManager.getInstance().runSyncLater(() -> {