Fix Evo and SG
This commit is contained in:
parent
b407f4ed8a
commit
77fee0f567
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -149,7 +149,6 @@ public class Evolution extends SoloGame
|
||||
.setGiveCompass(false)
|
||||
.register(this);
|
||||
|
||||
AutomaticRespawn = false;
|
||||
DeathSpectateSecs = 4.0;
|
||||
|
||||
CreatureAllow = false;
|
||||
|
@ -253,7 +253,6 @@ public class BawkBawkBattles extends TeamGame implements IThrown
|
||||
|
||||
DeathOut = false;
|
||||
DeathTeleport = false;
|
||||
AutomaticRespawn = false;
|
||||
DeathMessages = false;
|
||||
FixSpawnFacing = false;
|
||||
|
||||
|
@ -37,7 +37,6 @@ public class SurvivalGamesNewTeams extends SurvivalGamesNew
|
||||
_teamSelector = new FillToSelector(this, 2);
|
||||
|
||||
new NamedTeamsModule()
|
||||
.setTeamPerSpawn(true)
|
||||
.register(this);
|
||||
|
||||
new TeamRequestsModule()
|
||||
|
@ -782,11 +782,7 @@ public class GameFlagManager implements Listener
|
||||
// Respawn Now
|
||||
if (respawnTime <= 0)
|
||||
{
|
||||
// Auto handle respawning
|
||||
if (game.AutomaticRespawn)
|
||||
{
|
||||
game.RespawnPlayer(player);
|
||||
}
|
||||
game.RespawnPlayer(player);
|
||||
|
||||
Manager.runSyncLater(() ->
|
||||
{
|
||||
@ -844,11 +840,9 @@ public class GameFlagManager implements Listener
|
||||
{
|
||||
Manager.addSpectator(player, game.DeathTeleport);
|
||||
}
|
||||
else if (game.AutomaticRespawn)
|
||||
{
|
||||
game.RespawnPlayer(player);
|
||||
UtilTextBottom.display(C.cGreenB + "Respawned", player);
|
||||
}
|
||||
|
||||
game.RespawnPlayer(player);
|
||||
UtilTextBottom.display(C.cGreenB + "Respawned", player);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user