Fix Evo and SG

This commit is contained in:
Sam 2018-07-20 00:12:16 +01:00 committed by Alexander Meech
parent b407f4ed8a
commit 77fee0f567
6 changed files with 5 additions and 15 deletions

View File

@ -342,7 +342,7 @@ public class SetCommand extends CommandBase<ArcadeManager>
@Override
public List<String> onTabComplete(CommandSender sender, String commandLabel, String[] args)
{
if (!(sender instanceof Player) || !_commandCenter.GetClientManager().Get((Player) sender).hasPermission(getPermission()))
if (!(sender instanceof Player) || !Plugin.canPlayerUseGameCmd((Player) sender))
{
return null;
}

View File

@ -245,7 +245,6 @@ public abstract class Game extends ListenerComponent implements Lifetimed
public boolean DeathOut = true;
public boolean DeathDropItems = false;
public boolean DeathMessages = true;
public boolean AutomaticRespawn = true;
public double DeathSpectateSecs = 0;
public boolean DeathTeleport = true;

View File

@ -149,7 +149,6 @@ public class Evolution extends SoloGame
.setGiveCompass(false)
.register(this);
AutomaticRespawn = false;
DeathSpectateSecs = 4.0;
CreatureAllow = false;

View File

@ -253,7 +253,6 @@ public class BawkBawkBattles extends TeamGame implements IThrown
DeathOut = false;
DeathTeleport = false;
AutomaticRespawn = false;
DeathMessages = false;
FixSpawnFacing = false;

View File

@ -37,7 +37,6 @@ public class SurvivalGamesNewTeams extends SurvivalGamesNew
_teamSelector = new FillToSelector(this, 2);
new NamedTeamsModule()
.setTeamPerSpawn(true)
.register(this);
new TeamRequestsModule()

View File

@ -781,12 +781,8 @@ public class GameFlagManager implements Listener
// Respawn Now
if (respawnTime <= 0)
{
// Auto handle respawning
if (game.AutomaticRespawn)
{
game.RespawnPlayer(player);
}
Manager.runSyncLater(() ->
{
@ -844,12 +840,10 @@ public class GameFlagManager implements Listener
{
Manager.addSpectator(player, game.DeathTeleport);
}
else if (game.AutomaticRespawn)
{
game.RespawnPlayer(player);
UtilTextBottom.display(C.cGreenB + "Respawned", player);
}
}
else
{
UtilTextBottom.displayProgress("Respawning", percentage, UtilTime.MakeStr(left), player);