carl spinner in arcade/

tutorial fixes
This commit is contained in:
Mini-Chiss 2015-08-12 08:36:21 +02:00
parent e8963cc2af
commit 7cda53cb28
3 changed files with 15 additions and 4 deletions

View File

@ -118,8 +118,8 @@ public class PartyTutorial extends Tutorial
)); ));
_phases.add(new TutorialPhase( _phases.add(new TutorialPhase(
manager.GetSpawn().add(0, -2, 0), manager.GetSpawn().add(0, 0, 0),
manager.GetSpawn().add(0, -2.1, 5), manager.GetSpawn().add(0, 0.1, 5),
"End", "End",
new String[] new String[]
{ {

View File

@ -132,8 +132,8 @@ public class WelcomeTutorial extends Tutorial
//END //END
_phases.add(new TutorialPhase( _phases.add(new TutorialPhase(
manager.GetSpawn().add(0, -2, 0), manager.GetSpawn().add(0, 0, 0),
manager.GetSpawn().add(0, -2.1, 5), manager.GetSpawn().add(0, 0.1, 5),
"End", "End",
new String[] new String[]
{ {

View File

@ -3,6 +3,7 @@ package nautilus.game.arcade.managers;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
import mineplex.core.bonuses.event.CarlSpinnerEvent;
import mineplex.core.common.util.C; import mineplex.core.common.util.C;
import mineplex.core.common.util.F; import mineplex.core.common.util.F;
import mineplex.core.common.util.UtilFirework; import mineplex.core.common.util.UtilFirework;
@ -692,4 +693,14 @@ public class GameManager implements Listener
{ {
event.GetGame().EndCheck(); event.GetGame().EndCheck();
} }
@EventHandler
public void carlSpinnerCancel(CarlSpinnerEvent event)
{
Game game = Manager.GetGame();
if (game == null) return;
if (game.GetCountdown() > 0)
event.setCancelled(true);
}
} }