Add headers to new classes, so as to comply with coding standards.

To that end, change methods to camel case and refactor them, so that the newly-renamed methods do not result in errors.
This commit is contained in:
Joseph Prezioso Jr 2016-04-06 16:20:26 -04:00
parent c6c52885a9
commit f030f78f08
145 changed files with 934 additions and 929 deletions

View File

@ -18,4 +18,9 @@ public class EloPlayer
_division = newDivision;
}
public String getDivision()
{
return _division;
}
}

View File

@ -571,15 +571,15 @@ public class ArcadeManager extends MiniPlugin implements IRelation
if (pA == null || pB == null)
return false;
if (!_game.Damage.GetOption())
if (!_game.Damage.getOption())
return false;
if (!_game.DamagePvP.GetOption())
if (!_game.DamagePvP.getOption())
return false;
// Self Damage
if (pA.equals(pB))
return _game.DamageSelf.GetOption();
return _game.DamageSelf.getOption();
GameTeam tA = _game.GetTeam(pA);
if (tA == null)
@ -589,10 +589,10 @@ public class ArcadeManager extends MiniPlugin implements IRelation
if (tB == null)
return false;
if (tA.equals(tB) && !_game.DamageTeamSelf.GetOption())
if (tA.equals(tB) && !_game.DamageTeamSelf.getOption())
return false;
if (!tA.equals(tB) && !_game.DamageTeamOther.GetOption())
if (!tA.equals(tB) && !_game.DamageTeamOther.getOption())
return false;
return true;
@ -703,7 +703,7 @@ public class ArcadeManager extends MiniPlugin implements IRelation
if (event.getJoinMessage() == null)
return;
if (_game != null && _game.AnnounceJoinQuit.GetOption())
if (_game != null && _game.AnnounceJoinQuit.getOption())
event.setJoinMessage(F.sys("Join", GetColor(event.getPlayer()) + name));
else
@ -724,7 +724,7 @@ public class ArcadeManager extends MiniPlugin implements IRelation
if (event.getQuitMessage() == null)
return;
if (_game == null || _game.AnnounceJoinQuit.GetOption())
if (_game == null || _game.AnnounceJoinQuit.getOption())
event.setQuitMessage(F.sys("Quit", GetColor(event.getPlayer()) + name));
else
event.setQuitMessage(null);
@ -850,7 +850,7 @@ public class ArcadeManager extends MiniPlugin implements IRelation
|| _donationManager.Get(event.getPlayer().getName()).OwnsUnknownPackage(_serverConfig.ServerType + " ULTRA"))
{
if (GetGame() != null && GetGame().DontAllowOverfill.GetOption())
if (GetGame() != null && GetGame().DontAllowOverfill.getOption())
{
event.disallow(PlayerLoginEvent.Result.KICK_OTHER, C.Bold + "Server has reached max capacity for gameplay purposes.");
return;
@ -1230,7 +1230,7 @@ public class ArcadeManager extends MiniPlugin implements IRelation
}
else if (event.GetState() == GameState.Prepare || event.GetState() == GameState.Loading || event.GetState() == GameState.Dead)
{
if (event.GetGame().GadgetsDisabled.GetOption())
if (event.GetGame().GadgetsDisabled.getOption())
{
if (getCosmeticManager().isShowingInterface())
{

View File

@ -716,11 +716,11 @@ public abstract class Game implements Listener
public GameTeam ChooseTeam(Player player)
{
if (FillTeamsInOrderToCount.GetOption() != -1)
if (FillTeamsInOrderToCount.getOption() != -1)
{
for (int i = 0; i < _teamList.size(); i++)
{
if (_teamList.get(i).GetSize() < FillTeamsInOrderToCount.GetOption())
if (_teamList.get(i).GetSize() < FillTeamsInOrderToCount.getOption())
{
return _teamList.get(i);
}
@ -743,7 +743,7 @@ public abstract class Game implements Listener
public double GetKillsGems(Player killer, Player killed, boolean assist)
{
if (DeathOut.GetOption())
if (DeathOut.getOption())
{
if (!assist)
{
@ -1058,10 +1058,10 @@ public abstract class Game implements Listener
public DeathMessageType GetDeathMessageType()
{
if (!DeathMessages.GetOption())
if (!DeathMessages.getOption())
return DeathMessageType.None;
if (this.DeathOut.GetOption())
if (this.DeathOut.getOption())
return DeathMessageType.Detailed;
return DeathMessageType.Simple;
@ -1131,7 +1131,7 @@ public abstract class Game implements Listener
for (Player player : UtilServer.getPlayers())
AnnounceGame(player);
if (AnnounceSilence.GetOption())
if (AnnounceSilence.getOption())
Manager.GetChat().Silence(PrepareTime, false);
}
@ -1216,7 +1216,7 @@ public abstract class Game implements Listener
UtilTextMiddle.display(winnerText, subColor + "won the game", 20, 120, 20);
if (AnnounceSilence.GetOption())
if (AnnounceSilence.getOption())
Manager.GetChat().Silence(5000, false);
}
@ -1273,13 +1273,13 @@ public abstract class Game implements Listener
UtilTextMiddle.display(winnerText, subColor + "won the game", 20, 120, 20);
AdjustPlayerElo(places);
adjustPlayerElo(places);
if (AnnounceSilence.GetOption())
if (AnnounceSilence.getOption())
Manager.GetChat().Silence(5000, false);
}
public int CalculateEloMultiplier(int currentElo, int averageElo)
public int calculateEloMultiplier(int currentElo, int averageElo)
{
int eloDifference = averageElo - currentElo;
@ -1317,7 +1317,7 @@ public abstract class Game implements Listener
return 0;
}
public void AdjustPlayerElo(List<Player> places)
public void adjustPlayerElo(List<Player> places)
{
int averageElo = 0;
for (Player player : UtilServer.getPlayers())
@ -1332,7 +1332,7 @@ public abstract class Game implements Listener
int currentElo = Manager.getEloManager().getElo(player.getUniqueId(), GetName());
int lossMultiplier = 1;
int sizeModifier = 3;
int eloMultiplier = CalculateEloMultiplier(currentElo, averageElo);
int eloMultiplier = calculateEloMultiplier(currentElo, averageElo);
//nobody won, add 10 points to all players
//Profitable enough see the match through to the end, but not enough for a stale-mate to be a more desirable outcome than 3rd place
@ -1650,7 +1650,7 @@ public abstract class Game implements Listener
@EventHandler
public void classCombatCreatureAllow(ClassCombatCreatureAllowSpawnEvent event)
{
CreatureAllowOverride.SetOption(event.getAllowed());
CreatureAllowOverride.setOption(event.getAllowed());
}
public boolean isInsideMap(Player player)
@ -1671,17 +1671,17 @@ public abstract class Game implements Listener
public void setItemMergeRadius(double mergeRadius)
{
_itemMergeRadius.SetOption(mergeRadius);
_itemMergeRadius.setOption(mergeRadius);
if (WorldData.World != null)
{
((CraftWorld) WorldData.World).getHandle().spigotConfig.itemMerge = _itemMergeRadius.GetOption();
((CraftWorld) WorldData.World).getHandle().spigotConfig.itemMerge = _itemMergeRadius.getOption();
}
}
public double getItemMergeRadius()
{
return _itemMergeRadius.GetOption();
return _itemMergeRadius.getOption();
}
@EventHandler
@ -1690,7 +1690,7 @@ public abstract class Game implements Listener
if (event.getWorld().getName().equals(WorldData.GetFolder()))
{
System.out.println("Setting item merge radius for game to " + _itemMergeRadius);
((CraftWorld) event.getWorld()).getHandle().spigotConfig.itemMerge = _itemMergeRadius.GetOption();
((CraftWorld) event.getWorld()).getHandle().spigotConfig.itemMerge = _itemMergeRadius.getOption();
}
}

View File

@ -132,7 +132,7 @@ public class GameTeam
public Location GetSpawn()
{
//Keep allies together
if (!Host.IsLive() && Host.SpawnNearAllies.GetOption())
if (!Host.IsLive() && Host.SpawnNearAllies.getOption())
{
//Find Location Nearest Ally
Location loc = UtilAlg.getLocationNearPlayers(_spawns, GetPlayers(true), Host.GetPlayers(true));
@ -142,7 +142,7 @@ public class GameTeam
//No allies existed spawned yet
//Spawn near enemies (used for SG)
if (Host.SpawnNearEnemies.GetOption())
if (Host.SpawnNearEnemies.getOption())
{
loc = UtilAlg.getLocationNearPlayers(_spawns, Host.GetPlayers(true), Host.GetPlayers(true));
if (loc != null)
@ -159,7 +159,7 @@ public class GameTeam
else
{
//Spawn near players
if (Host.SpawnNearEnemies.GetOption())
if (Host.SpawnNearEnemies.getOption())
{
Location loc = UtilAlg.getLocationNearPlayers(_spawns, Host.GetPlayers(true), Host.GetPlayers(true));
if (loc != null)

View File

@ -76,7 +76,7 @@ public abstract class TeamGame extends Game
if (player.getWorld().getName().equalsIgnoreCase("world"))
return;
if (!QuitOut.GetOption())
if (!QuitOut.getOption())
{
//Store
_rejoinTime.put(player.getName(), System.currentTimeMillis());
@ -97,7 +97,7 @@ public abstract class TeamGame extends Game
@EventHandler(priority = EventPriority.LOWEST)
public void PlayerLoginAllow(PlayerLoginEvent event)
{
if (!InProgress() || QuitOut.GetOption())
if (!InProgress() || QuitOut.getOption())
return;
//Rejoined
@ -135,7 +135,7 @@ public abstract class TeamGame extends Game
@EventHandler
public void playerRejoinGame(PlayerJoinEvent event)
{
if (!InProgress() || QuitOut.GetOption())
if (!InProgress() || QuitOut.getOption())
return;
Player player = event.getPlayer();
@ -150,7 +150,7 @@ public abstract class TeamGame extends Game
@EventHandler
public void PlayerRejoinExpire(UpdateEvent event)
{
if (event.getType() != UpdateType.SEC || QuitOut.GetOption())
if (event.getType() != UpdateType.SEC || QuitOut.getOption())
return;
Iterator<String> rejoinIterator = _rejoinTime.keySet().iterator();
@ -177,7 +177,7 @@ public abstract class TeamGame extends Game
@EventHandler
public void RejoinCommand(PlayerCommandPreprocessEvent event)
{
if (!QuitOut.GetOption() && event.getPlayer().isOp() && event.getMessage().startsWith("/allowrejoin"))
if (!QuitOut.getOption() && event.getPlayer().isOp() && event.getMessage().startsWith("/allowrejoin"))
{
String[] toks = event.getMessage().split(" ");
@ -206,7 +206,7 @@ public abstract class TeamGame extends Game
if (team.GetPlayers(true).size() > 0)
teamsAlive.add(team);
if (!QuitOut.GetOption())
if (!QuitOut.getOption())
{
//Offline Player Team
for (GameTeam team : RejoinTeam.values())

View File

@ -35,9 +35,9 @@ public class BaconBrawl extends SoloGame
"Last pig in the arena wins!"
});
DamageTeamSelf.SetOption(true);
HungerSet.SetOption(20);
PrepareFreeze.SetOption(false);
DamageTeamSelf.setOption(true);
HungerSet.setOption(20);
PrepareFreeze.setOption(false);
registerChatStats(
Kills,

View File

@ -54,13 +54,13 @@ public class KitMamaPig extends Kit
disguise.setCustomNameVisible(false);
Manager.GetDisguise().disguise(disguise);
Manager.GetGame().CreatureAllowOverride.SetOption(true);
Manager.GetGame().CreatureAllowOverride.setOption(true);
final Pig pig = player.getWorld().spawn(player.getEyeLocation(), Pig.class);
pig.setBaby();
pig.setAgeLock(true);
pig.setCustomName(C.cYellow + player.getName());
pig.setCustomNameVisible(false);
Manager.GetGame().CreatureAllowOverride.SetOption(false);
Manager.GetGame().CreatureAllowOverride.setOption(false);
player.setPassenger(pig);

View File

@ -39,27 +39,27 @@ public class Barbarians extends SoloGame
"Last player alive wins!"
});
this.DamageTeamSelf.SetOption(true);
this.DamageTeamSelf.setOption(true);
this.CompassEnabled = true;
this.BlockBreakAllow.GetOption().add(5);
this.BlockBreakAllow.GetOption().add(17);
this.BlockBreakAllow.GetOption().add(18);
this.BlockBreakAllow.GetOption().add(20);
this.BlockBreakAllow.GetOption().add(30);
this.BlockBreakAllow.GetOption().add(47);
this.BlockBreakAllow.GetOption().add(53);
this.BlockBreakAllow.GetOption().add(54);
this.BlockBreakAllow.GetOption().add(58);
this.BlockBreakAllow.GetOption().add(64);
this.BlockBreakAllow.GetOption().add(83);
this.BlockBreakAllow.GetOption().add(85);
this.BlockBreakAllow.GetOption().add(96);
this.BlockBreakAllow.GetOption().add(125);
this.BlockBreakAllow.GetOption().add(126);
this.BlockBreakAllow.GetOption().add(134);
this.BlockBreakAllow.GetOption().add(135);
this.BlockBreakAllow.GetOption().add(136);
this.BlockBreakAllow.getOption().add(5);
this.BlockBreakAllow.getOption().add(17);
this.BlockBreakAllow.getOption().add(18);
this.BlockBreakAllow.getOption().add(20);
this.BlockBreakAllow.getOption().add(30);
this.BlockBreakAllow.getOption().add(47);
this.BlockBreakAllow.getOption().add(53);
this.BlockBreakAllow.getOption().add(54);
this.BlockBreakAllow.getOption().add(58);
this.BlockBreakAllow.getOption().add(64);
this.BlockBreakAllow.getOption().add(83);
this.BlockBreakAllow.getOption().add(85);
this.BlockBreakAllow.getOption().add(96);
this.BlockBreakAllow.getOption().add(125);
this.BlockBreakAllow.getOption().add(126);
this.BlockBreakAllow.getOption().add(134);
this.BlockBreakAllow.getOption().add(135);
this.BlockBreakAllow.getOption().add(136);
registerStatTrackers(
new BlockBreakStatTracker(this, true)

View File

@ -55,9 +55,9 @@ public class BossBattles extends TeamGame
"Fight some bosses"
});
HungerSet.SetOption(20);
CreatureAllowOverride.SetOption(true);
PrepareFreeze.SetOption(false);
HungerSet.setOption(20);
CreatureAllowOverride.setOption(true);
PrepareFreeze.setOption(false);
// registerChatStats(Kills);
// Game giving constant errors when loading.

View File

@ -104,13 +104,13 @@ public class Ball
_ball.remove();
//Spawn
_host.CreatureAllowOverride.SetOption(true);
_host.CreatureAllowOverride.setOption(true);
_ball = _ballSpawn.getWorld().spawn(_ballSpawn, Slime.class);
_ball.setSize(2);
UtilEnt.Vegetate(_ball);
UtilEnt.ghost(_ball, false, false);
_host.CreatureAllowOverride.SetOption(false);
_host.CreatureAllowOverride.setOption(false);
_lastParticle = _ball.getLocation();

View File

@ -35,7 +35,7 @@ public class BouncyBalls extends SoloGame
"BOUNCE"
});
this.HungerSet.SetOption(20);
this.HungerSet.setOption(20);
// registerChatStats();
}

View File

@ -175,45 +175,45 @@ public class Bridge extends TeamGame implements OreObsfucation
_ore = new OreHider();
// Flags
GameTimeout.SetOption(Manager.IsTournamentServer() ? 5400000 : 3600000);
GameTimeout.setOption(Manager.IsTournamentServer() ? 5400000 : 3600000);
Manager.GetExplosion().SetLiquidDamage(false);
this.StrictAntiHack.SetOption(true);
this.StrictAntiHack.setOption(true);
DamageSelf.SetOption(true);
DamageSelf.setOption(true);
ItemDrop.SetOption(true);
ItemPickup.SetOption(true);
ItemDrop.setOption(true);
ItemPickup.setOption(true);
InventoryClick.SetOption(true);
InventoryClick.setOption(true);
AnnounceStay.SetOption(false);
AnnounceStay.setOption(false);
PrivateBlocks.SetOption(true);
BlockBreak.SetOption(true);
BlockPlace.SetOption(true);
PrivateBlocks.setOption(true);
BlockBreak.setOption(true);
BlockPlace.setOption(true);
InventoryOpenBlock.SetOption(true);
InventoryOpenChest.SetOption(true);
InventoryOpenBlock.setOption(true);
InventoryOpenChest.setOption(true);
WorldTimeSet.SetOption(2000);
WorldTimeSet.setOption(2000);
WorldWaterDamage.SetOption(0);
WorldBoundaryKill.SetOption(false);
WorldWaterDamage.setOption(0);
WorldBoundaryKill.setOption(false);
CompassEnabled = true;
DeathDropItems.SetOption(true);
DeathDropItems.setOption(true);
GemMultiplier = 2.5;
PrepareFreeze.SetOption(false);
PrepareFreeze.setOption(false);
//Tournament
if (Manager.IsTournamentServer())
{
QuitOut.SetOption(false);
QuitOut.setOption(false);
_gameDesc = new String[]
{
@ -273,10 +273,10 @@ public class Bridge extends TeamGame implements OreObsfucation
if (!WorldData.GetCustomLocs("WATER_DAMAGE").isEmpty())
{
WorldWaterDamage.SetOption(4);
WorldWaterDamage.setOption(4);
}
if (WorldWaterDamage.GetOption() > 0)
if (WorldWaterDamage.getOption() > 0)
{
if (WorldData.MapName.equals("Volcanic Islands"))
UtilTextMiddle.display(C.cRed + "Warning", "Water is Boiling Hot", 10, 60, 20);
@ -1084,14 +1084,14 @@ public class Bridge extends TeamGame implements OreObsfucation
Entity ent;
CreatureAllowOverride.SetOption(true);
CreatureAllowOverride.setOption(true);
if (rand > 0.66)
ent = team.GetSpawn().getWorld().spawn(team.GetSpawn(), Cow.class);
else if (rand > 0.33)
ent = team.GetSpawn().getWorld().spawn(team.GetSpawn(), Pig.class);
else
ent = team.GetSpawn().getWorld().spawn(team.GetSpawn(), Chicken.class);
CreatureAllowOverride.SetOption(false);
CreatureAllowOverride.setOption(false);
_animalSet.get(team).add(ent);
}
@ -1395,7 +1395,7 @@ public class Bridge extends TeamGame implements OreObsfucation
if (event.getBucket() != Material.WATER_BUCKET)
return;
if (WorldWaterDamage.GetOption() > 0)
if (WorldWaterDamage.getOption() > 0)
{
UtilPlayer.message(
event.getPlayer(),
@ -1597,7 +1597,7 @@ public class Bridge extends TeamGame implements OreObsfucation
if (team.GetPlayers(true).size() > 0)
teamsAlive.add(team);
if (!QuitOut.GetOption())
if (!QuitOut.getOption())
{
//Offline Player Team
for (GameTeam team : RejoinTeam.values())

View File

@ -165,29 +165,29 @@ public class Build extends SoloGame
"based on the build theme!"
});
this.StrictAntiHack.SetOption(true);
this.Damage.SetOption(false);
this.HungerSet.SetOption(20);
this.HealthSet.SetOption(20);
this.StrictAntiHack.setOption(true);
this.Damage.setOption(false);
this.HungerSet.setOption(20);
this.HealthSet.setOption(20);
this.BlockBreak.SetOption(true);
this.BlockPlace.SetOption(true);
this.BlockBreak.setOption(true);
this.BlockPlace.setOption(true);
this.ItemDrop.SetOption(true);
this.ItemPickup.SetOption(true);
this.ItemDrop.setOption(true);
this.ItemPickup.setOption(true);
this.InventoryClick.SetOption(true);
this.InventoryClick.setOption(true);
this.WorldTimeSet.SetOption(6000);
this.WorldTimeSet.setOption(6000);
this.PrepareFreeze.SetOption(false);
this.PrepareFreeze.setOption(false);
this.CreatureAllow.SetOption(true);
this.CreatureAllow.setOption(true);
this.WorldFireSpread.SetOption(true);
this.WorldBoneMeal.SetOption(true);
this.WorldFireSpread.setOption(true);
this.WorldBoneMeal.setOption(true);
this.DontAllowOverfill.SetOption(true);
this.DontAllowOverfill.setOption(true);
UtilServer.getServer().spigot().getConfig().set("view-distance", 4);
@ -275,7 +275,7 @@ public class Build extends SoloGame
UtilTextMiddle.display(null, C.cYellow + "Build " + C.cWhite + _word, 0, 80, 5);
this.WorldTimeSet.SetOption(-1);
this.WorldTimeSet.setOption(-1);
}
}
@ -353,13 +353,13 @@ public class Build extends SoloGame
_buildStateTime = System.currentTimeMillis();
//Flags
this.BlockBreak.SetOption(false);
this.BlockPlace.SetOption(false);
this.BlockBreak.setOption(false);
this.BlockPlace.setOption(false);
this.ItemDrop.SetOption(false);
this.ItemPickup.SetOption(false);
this.ItemDrop.setOption(false);
this.ItemPickup.setOption(false);
this.InventoryClick.SetOption(false);
this.InventoryClick.setOption(false);
UtilTextMiddle.display(null, C.cYellow + "TIME IS UP!", 0, 60, 5);

View File

@ -60,14 +60,14 @@ public class Cards extends SoloGame
"based on the build theme!"
});
this.StrictAntiHack.SetOption(true);
this.Damage.SetOption(false);
this.HungerSet.SetOption(20);
this.HealthSet.SetOption(20);
this.StrictAntiHack.setOption(true);
this.Damage.setOption(false);
this.HungerSet.setOption(20);
this.HealthSet.setOption(20);
this.WorldTimeSet.SetOption(6000);
this.WorldTimeSet.setOption(6000);
this.PrepareFreeze.SetOption(false);
this.PrepareFreeze.setOption(false);
_cardFactory = new CardFactory();

View File

@ -192,12 +192,12 @@ public class CastleSiege extends TeamGame
};
this.StrictAntiHack.SetOption(true);
this.StrictAntiHack.setOption(true);
this.HungerSet.SetOption(20);
this.DeathOut.SetOption(false);
this.WorldTimeSet.SetOption(14000); //14000
this.BlockPlaceAllow.GetOption().add(85);
this.HungerSet.setOption(20);
this.DeathOut.setOption(false);
this.WorldTimeSet.setOption(14000); //14000
this.BlockPlaceAllow.getOption().add(85);
_kingName = C.cYellow + C.Bold + "King Sparklez";
@ -307,9 +307,9 @@ public class CastleSiege extends TeamGame
if (GetKits().length <= 5 + i)
continue;
this.CreatureAllowOverride.SetOption(true);
this.CreatureAllowOverride.setOption(true);
Entity ent = GetKits()[5 + i].SpawnEntity(WorldData.GetDataLocs("PINK").get(i));
this.CreatureAllowOverride.SetOption(false);
this.CreatureAllowOverride.setOption(false);
Manager.GetLobby().AddKitLocation(ent, GetKits()[5 + i], WorldData.GetDataLocs("PINK").get(i));
}
@ -323,9 +323,9 @@ public class CastleSiege extends TeamGame
for (Location loc : _horseSpawns)
{
this.CreatureAllowOverride.SetOption(true);
this.CreatureAllowOverride.setOption(true);
Horse horse = loc.getWorld().spawn(loc, Horse.class);
this.CreatureAllowOverride.SetOption(false);
this.CreatureAllowOverride.setOption(false);
horse.setAdult();
horse.setAgeLock(true);
@ -387,7 +387,7 @@ public class CastleSiege extends TeamGame
return;
//Spawn King
this.CreatureAllowOverride.SetOption(true);
this.CreatureAllowOverride.setOption(true);
_kingLoc = _kingLocs.get(UtilMath.r(_kingLocs.size()));
@ -404,7 +404,7 @@ public class CastleSiege extends TeamGame
_king.setRemoveWhenFarAway(false);
this.CreatureAllowOverride.SetOption(false);
this.CreatureAllowOverride.setOption(false);
}
@EventHandler(priority = EventPriority.HIGH)
@ -555,7 +555,7 @@ public class CastleSiege extends TeamGame
Scoreboard.Write(_kingHealth + " Health");
}
long timeLeft = 24000 - WorldTimeSet.GetOption();
long timeLeft = 24000 - WorldTimeSet.getOption();
timeLeft = timeLeft / 20 * 1000;
@ -584,7 +584,7 @@ public class CastleSiege extends TeamGame
if (!IsLive())
return;
if (this.WorldTimeSet.GetOption() > 24100)
if (this.WorldTimeSet.getOption() > 24100)
{
SetCustomWinLine(_kingName + ChatColor.RESET + " has survived the siege!");
@ -937,7 +937,7 @@ public class CastleSiege extends TeamGame
if (event.getType() != UpdateType.TICK)
return;
WorldTimeSet.SetOption(WorldTimeSet.GetOption() + 1);
WorldTimeSet.setOption(WorldTimeSet.getOption() + 1);
}
@EventHandler

View File

@ -67,16 +67,16 @@ public class ChampionsCTF extends CaptureTheFlag
Manager.getClassManager().GetItemFactory().getProximityManager().setProxyLimit(6);
this.StrictAntiHack.SetOption(true);
this.StrictAntiHack.setOption(true);
InventoryOpenChest.SetOption(true);
InventoryOpenChest.setOption(true);
EloRanking = false;
EloStart = 1000;
this.DontAllowOverfill.SetOption(true);
this.DontAllowOverfill.setOption(true);
this.DisableKillCommand.SetOption(false);
this.DisableKillCommand.setOption(false);
registerStatTrackers(
new KillReasonStatTracker(this, "Backstab", "Assassination", false),

View File

@ -62,16 +62,16 @@ public class ChampionsDominate extends Domination
Manager.getClassManager().GetItemFactory().getProximityManager().setProxyLimit(6);
this.StrictAntiHack.SetOption(true);
this.StrictAntiHack.setOption(true);
InventoryOpenChest.SetOption(true);
InventoryOpenChest.setOption(true);
EloRanking = false;
EloStart = 1000;
this.DontAllowOverfill.SetOption(true);
this.DontAllowOverfill.setOption(true);
this.DisableKillCommand.SetOption(false);
this.DisableKillCommand.setOption(false);
registerStatTrackers(
new KillReasonStatTracker(this, "Backstab", "Assassination", false),

View File

@ -63,13 +63,13 @@ public class ChampionsTDM extends TeamDeathmatch
Manager.getClassManager().GetItemFactory().getProximityManager().setProxyLimit(6);
this.StrictAntiHack.SetOption(true);
this.StrictAntiHack.setOption(true);
InventoryOpenChest.SetOption(true);
InventoryOpenChest.setOption(true);
this.DisableKillCommand.SetOption(false);
this.DisableKillCommand.setOption(false);
this.DontAllowOverfill.SetOption(true);
this.DontAllowOverfill.setOption(true);
registerStatTrackers(
new WinWithoutLosingTeammateStatTracker(this, "FlawlessVictory"),

View File

@ -148,10 +148,10 @@ public class Christmas extends SoloGame
"Defeat the Thief who stole the Presents!"
});
BlockBreakAllow.GetOption().add(4);
HungerSet.SetOption(20);
WorldTimeSet.SetOption(2000);
PrepareFreeze.SetOption(false);
BlockBreakAllow.getOption().add(4);
HungerSet.setOption(20);
WorldTimeSet.setOption(2000);
PrepareFreeze.setOption(false);
registerChatStats(
DamageDealt,
@ -332,7 +332,7 @@ public class Christmas extends SoloGame
Location loc = christmas.GetSleigh().GetLocation();
christmas.CreatureAllowOverride.SetOption(true);
christmas.CreatureAllowOverride.setOption(true);
for (int i=0 ; i<20 ; i++)
{
Location elfLoc = UtilBlock.getHighest(loc.getWorld(), (int)(loc.getX() + 20 - Math.random()*40), (int)(loc.getZ() + 20 - Math.random()*40)).getLocation().add(0.5, 0.5, 0.5);
@ -345,7 +345,7 @@ public class Christmas extends SoloGame
elf.setCustomName("Elf");
}
christmas.CreatureAllowOverride.SetOption(false);
christmas.CreatureAllowOverride.setOption(false);
}
}, 20);
}

View File

@ -46,7 +46,7 @@ public class Sleigh
{
Host = host;
Host.CreatureAllowOverride.SetOption(true);
Host.CreatureAllowOverride.setOption(true);
Target = loc.clone();

View File

@ -55,9 +55,9 @@ public class BossMobs
_lastSpawn = System.currentTimeMillis();
//Spawn
Host.Host.CreatureAllowOverride.SetOption(true);
Host.Host.CreatureAllowOverride.setOption(true);
Creature ent = UtilAlg.Random(_spawns).getWorld().spawn(UtilAlg.Random(_spawns), Skeleton.class);
Host.Host.CreatureAllowOverride.SetOption(false);
Host.Host.CreatureAllowOverride.setOption(false);
//Weapon
double r = Math.random();

View File

@ -106,7 +106,7 @@ public class BossSnowmanPattern
_lastSpawn = System.currentTimeMillis();
Host.Host.CreatureAllowOverride.SetOption(true);
Host.Host.CreatureAllowOverride.setOption(true);
//Spawn A
for (int i=0 ; i<_spawnA.size() ; i++)
@ -134,7 +134,7 @@ public class BossSnowmanPattern
_ents.add(new BossSnowman(ent, loc, _bDir));
}
Host.Host.CreatureAllowOverride.SetOption(false);
Host.Host.CreatureAllowOverride.setOption(false);
}
private void MoveDieHit()

View File

@ -27,9 +27,9 @@ public class CaveGiant
{
Host = host;
Host.Host.CreatureAllowOverride.SetOption(true);
Host.Host.CreatureAllowOverride.setOption(true);
_ent = loc.getWorld().spawn(loc, Giant.class);
Host.Host.CreatureAllowOverride.SetOption(false);
Host.Host.CreatureAllowOverride.setOption(false);
UtilEnt.Vegetate(_ent);
_ent.setMaxHealth(300);

View File

@ -44,9 +44,9 @@ public class PumpkinKing
_grid = grid;
Host.Host.CreatureAllowOverride.SetOption(true);
Host.Host.CreatureAllowOverride.setOption(true);
_ent = loc.getWorld().spawn(loc, Skeleton.class);
Host.Host.CreatureAllowOverride.SetOption(false);
Host.Host.CreatureAllowOverride.setOption(false);
UtilEnt.Vegetate(_ent);
UtilEnt.ghost(_ent, true, false);

View File

@ -43,7 +43,7 @@ public class SnowmanBoss
_minions = new ArrayList<SnowmanMinion>();
//Spawn
Host.CreatureAllowOverride.SetOption(true);
Host.CreatureAllowOverride.setOption(true);
for (int i=0 ; i<14 ; i++)
_minions.add(new SnowmanMinion(_spawn.getWorld().spawn(_spawn, Snowman.class)));
@ -53,7 +53,7 @@ public class SnowmanBoss
_heart.setHealth(1400);
UtilEnt.Vegetate(_heart);
Host.CreatureAllowOverride.SetOption(false);
Host.CreatureAllowOverride.setOption(false);
//Stack
Entity base = null;

View File

@ -258,9 +258,9 @@ public class SnowmanMaze
{
Location loc = UtilAlg.Random(_spawns);
Host.CreatureAllowOverride.SetOption(true);
Host.CreatureAllowOverride.setOption(true);
Snowman ent = loc.getWorld().spawn(loc, Snowman.class);
Host.CreatureAllowOverride.SetOption(false);
Host.CreatureAllowOverride.setOption(false);
UtilEnt.Vegetate(ent);
UtilEnt.ghost(ent, true, false);

View File

@ -93,9 +93,9 @@ public class SnowmanWaveA
continue;
Location loc = _spawns.get(i);
Host.CreatureAllowOverride.SetOption(true);
Host.CreatureAllowOverride.setOption(true);
Snowman ent = loc.getWorld().spawn(loc, Snowman.class);
Host.CreatureAllowOverride.SetOption(false);
Host.CreatureAllowOverride.setOption(false);
UtilEnt.Vegetate(ent);
UtilEnt.ghost(ent, true, false);
_ents.add(ent);

View File

@ -90,9 +90,9 @@ public class SnowmanWaveB
_lastPositions.add(i);
Location loc = _spawns.get(i);
Host.CreatureAllowOverride.SetOption(true);
Host.CreatureAllowOverride.setOption(true);
Snowman ent = loc.getWorld().spawn(loc, Snowman.class);
Host.CreatureAllowOverride.SetOption(false);
Host.CreatureAllowOverride.setOption(false);
UtilEnt.Vegetate(ent);
UtilEnt.ghost(ent, true, false);
_ents.add(ent);

View File

@ -71,9 +71,9 @@ public abstract class Part implements Listener
Location standLoc = loc.clone().add(0, -1.45, 0);
standLoc.setYaw(UtilMath.r(100));
Host.CreatureAllowOverride.SetOption(true);
Host.CreatureAllowOverride.setOption(true);
ArmorStand stand = loc.getWorld().spawn(standLoc, ArmorStand.class);
Host.CreatureAllowOverride.SetOption(false);
Host.CreatureAllowOverride.setOption(false);
stand.setVisible(false);
stand.setGravity(false);

View File

@ -118,11 +118,11 @@ public class Part1 extends Part
//Create
Location loc = UtilAlg.Random(_skeletons);
Host.CreatureAllowOverride.SetOption(true);
Host.CreatureAllowOverride.setOption(true);
Skeleton skel = loc.getWorld().spawn(loc, Skeleton.class);
skel.getEquipment().setItemInHand(new ItemStack(Material.WOOD_HOE));
skel.setHealth(4);
Host.CreatureAllowOverride.SetOption(false);
Host.CreatureAllowOverride.setOption(false);
this.AddCreature(skel);
}

View File

@ -127,9 +127,9 @@ public class Part2 extends Part
//Create
Location loc = UtilAlg.Random(_spiders);
Host.CreatureAllowOverride.SetOption(true);
Host.CreatureAllowOverride.setOption(true);
Skeleton ent = loc.getWorld().spawn(loc, Skeleton.class);
Host.CreatureAllowOverride.SetOption(false);
Host.CreatureAllowOverride.setOption(false);
DisguiseSpider disguise = new DisguiseSpider(ent);
Host.Manager.GetDisguise().disguise(disguise);

View File

@ -179,9 +179,9 @@ public class Part4 extends Part
//Create
Location loc = UtilAlg.Random(_mobSpawns);
Host.CreatureAllowOverride.SetOption(true);
Host.CreatureAllowOverride.setOption(true);
Zombie ent = loc.getWorld().spawn(loc, Zombie.class);
Host.CreatureAllowOverride.SetOption(false);
Host.CreatureAllowOverride.setOption(false);
ent.getEquipment().setItemInHand(new ItemStack(Material.WOOD_PICKAXE));
ent.getEquipment().setChestplate(new ItemStack(Material.LEATHER_CHESTPLATE));

View File

@ -98,12 +98,12 @@ public class CaptureTheFlag extends TeamGame
});
this.DeathOut.SetOption(false);
this.PrepareFreeze.SetOption(true);
this.HungerSet.SetOption(20);
this.WorldTimeSet.SetOption(2000);
this.DeathOut.setOption(false);
this.PrepareFreeze.setOption(true);
this.HungerSet.setOption(20);
this.WorldTimeSet.setOption(2000);
this.DeathSpectateSecs.SetOption(10);
this.DeathSpectateSecs.setOption(10);
}
@Override
@ -129,7 +129,7 @@ public class CaptureTheFlag extends TeamGame
if (this instanceof ChampionsCTF)
{
CreatureAllowOverride.SetOption(true);
CreatureAllowOverride.setOption(true);
for (int i = 0; i < GetKits().length && i < WorldData.GetDataLocs("LIGHT_BLUE").size() && i < WorldData.GetDataLocs("PINK").size(); i++)
{
Entity ent = GetKits()[i].SpawnEntity(WorldData.GetDataLocs("PINK").get(i));
@ -138,7 +138,7 @@ public class CaptureTheFlag extends TeamGame
ent = GetKits()[i].SpawnEntity(WorldData.GetDataLocs("LIGHT_BLUE").get(i));
Manager.GetLobby().AddKitLocation(ent, GetKits()[i], WorldData.GetDataLocs("LIGHT_BLUE").get(i));
}
CreatureAllowOverride.SetOption(false);
CreatureAllowOverride.setOption(false);
}
//End kit spawning
@ -247,7 +247,7 @@ public class CaptureTheFlag extends TeamGame
else
{
_suddenDeath = true;
this.DeathOut.SetOption(true);
this.DeathOut.setOption(true);
UtilTextMiddle.display(C.cYellow + "Sudden Death", "Next Capture Wins! No Respawns!");
return;
}

View File

@ -80,12 +80,12 @@ public class Domination extends TeamGame
});
this.DeathOut.SetOption(false);
this.PrepareFreeze.SetOption(true);
this.HungerSet.SetOption(20);
this.WorldTimeSet.SetOption(2000);
this.DeathOut.setOption(false);
this.PrepareFreeze.setOption(true);
this.HungerSet.setOption(20);
this.WorldTimeSet.setOption(2000);
this.DeathSpectateSecs.SetOption(10);
this.DeathSpectateSecs.setOption(10);
//this.QuitOut = false;
}
@ -113,7 +113,7 @@ public class Domination extends TeamGame
//Spawn Kits
if (this instanceof ChampionsDominate)
{
CreatureAllowOverride.SetOption(true);
CreatureAllowOverride.setOption(true);
for (int i = 0; i < GetKits().length && i < WorldData.GetDataLocs("RED").size() && i < WorldData.GetDataLocs("BLUE").size(); i++)
{
@ -124,7 +124,7 @@ public class Domination extends TeamGame
Manager.GetLobby().AddKitLocation(ent, GetKits()[i], WorldData.GetDataLocs("BLUE").get(i));
}
CreatureAllowOverride.SetOption(false);
CreatureAllowOverride.setOption(false);
}
}

View File

@ -74,9 +74,9 @@ public class TeamDeathmatch extends TeamGame
});
this.DeathOut.SetOption(true);
this.HungerSet.SetOption(20);
this.WorldTimeSet.SetOption(2000);
this.DeathOut.setOption(true);
this.HungerSet.setOption(20);
this.WorldTimeSet.setOption(2000);
this.CompassEnabled = true;
this.Manager.GetDamage().UseSimpleWeaponDamage = false;

View File

@ -63,14 +63,14 @@ public class DeathTag extends SoloGame
"The last Runner alive wins!"
});
this.StrictAntiHack.SetOption(true);
this.StrictAntiHack.setOption(true);
this.DeathOut.SetOption(false);
this.HungerSet.SetOption(20);
this.DeathOut.setOption(false);
this.HungerSet.setOption(20);
this.CompassEnabled = true;
this.PrepareFreeze.SetOption(false);
this.PrepareFreeze.setOption(false);
registerStatTrackers(new ComeAtMeBroStatTracker(this));

View File

@ -114,9 +114,9 @@ public class DragonEscape extends SoloGame
"Last player alive wins!"
});
this.DamagePvP.SetOption(false);
this.HungerSet.SetOption(20);
this.BlockPlace.SetOption(true);
this.DamagePvP.setOption(false);
this.HungerSet.setOption(20);
this.BlockPlace.setOption(true);
registerStatTrackers(
new ParalympicsStatTracker(this),
@ -176,10 +176,10 @@ public class DragonEscape extends SoloGame
_speedMult = WorldData.GetDataLocs("GREEN").get(0).getX()/100d;
if (WorldData.MapName.contains("Hell"))
this.WorldTimeSet.SetOption(16000);
this.WorldTimeSet.setOption(16000);
if (WorldData.MapName.contains("Pirate"))
this.WorldWaterDamage.SetOption(2);
this.WorldWaterDamage.setOption(2);
}
@EventHandler
@ -191,9 +191,9 @@ public class DragonEscape extends SoloGame
for (Team team : GetScoreboard().GetScoreboard().getTeams())
team.setCanSeeFriendlyInvisibles(true);
this.CreatureAllowOverride.SetOption(true);
this.CreatureAllowOverride.setOption(true);
EnderDragon dragon = _dragon.getWorld().spawn(_dragon, EnderDragon.class);
this.CreatureAllowOverride.SetOption(false);
this.CreatureAllowOverride.setOption(false);
dragon.setCustomName(ChatColor.YELLOW + C.Bold + "Douglas the Dragon");

View File

@ -81,8 +81,8 @@ public class DragonEscapeTeams extends TeamGame
"Last player alive wins!"
});
this.DamagePvP.SetOption(false);
this.HungerSet.SetOption(20);
this.DamagePvP.setOption(false);
this.HungerSet.setOption(20);
this.TeamArmorHotbar = true;
@ -159,7 +159,7 @@ public class DragonEscapeTeams extends TeamGame
_speedMult = WorldData.GetDataLocs("GREEN").get(0).getX()/100d;
if (WorldData.MapName.contains("Hell"))
this.WorldTimeSet.SetOption(16000);
this.WorldTimeSet.setOption(16000);
}
@EventHandler
@ -174,9 +174,9 @@ public class DragonEscapeTeams extends TeamGame
if (event.GetState() != GameState.Prepare)
return;
this.CreatureAllowOverride.SetOption(true);
this.CreatureAllowOverride.setOption(true);
EnderDragon dragon = _dragon.getWorld().spawn(_dragon, EnderDragon.class);
this.CreatureAllowOverride.SetOption(false);
this.CreatureAllowOverride.setOption(false);
dragon.setCustomName(ChatColor.YELLOW + C.Bold + "Douglas the Dragon");

View File

@ -39,10 +39,10 @@ public class DragonData
Location = rider.getLocation();
//Spawn Dragon
manager.GetGame().CreatureAllowOverride.SetOption(true);
manager.GetGame().CreatureAllowOverride.setOption(true);
Dragon = rider.getWorld().spawn(rider.getLocation(), EnderDragon.class);
UtilEnt.Vegetate(Dragon);
manager.GetGame().CreatureAllowOverride.SetOption(false);
manager.GetGame().CreatureAllowOverride.setOption(false);
rider.getWorld().playSound(rider.getLocation(), Sound.ENDERDRAGON_GROWL, 20f, 1f);

View File

@ -22,8 +22,8 @@ public class DragonRiders extends SoloGame
});
this.Damage.SetOption(false);
this.HungerSet.SetOption(20);
this.Damage.setOption(false);
this.HungerSet.setOption(20);
//Chat stats
registerChatStats();

View File

@ -59,9 +59,9 @@ public class Dragons extends SoloGame
"Last player alive wins!"
});
this.DamagePvP.SetOption(false);
this.HungerSet.SetOption(20);
this.WorldWaterDamage.SetOption(4);
this.DamagePvP.setOption(false);
this.HungerSet.setOption(20);
this.WorldWaterDamage.setOption(4);
registerStatTrackers(
new SparklezStatTracker(this)
@ -153,10 +153,10 @@ public class Dragons extends SoloGame
if (_dragons.size() < 7)
{
CreatureAllowOverride.SetOption(true);
CreatureAllowOverride.setOption(true);
EnderDragon ent = GetSpectatorLocation().getWorld().spawn(_dragonSpawns.get(0), EnderDragon.class);
UtilEnt.Vegetate(ent);
CreatureAllowOverride.SetOption(false);
CreatureAllowOverride.setOption(false);
ent.getWorld().playSound(ent.getLocation(), Sound.ENDERDRAGON_GROWL, 20f, 1f);

View File

@ -66,10 +66,10 @@ public class DragonsTeams extends TeamGame
"Team with longest time survived wins!"
});
this.DamagePvP.SetOption(false);
this.HungerSet.SetOption(20);
this.WorldWaterDamage.SetOption(4);
this.PrepareFreeze.SetOption(false);
this.DamagePvP.setOption(false);
this.HungerSet.setOption(20);
this.WorldWaterDamage.setOption(4);
this.PrepareFreeze.setOption(false);
this.TeamArmor = true;
this.TeamArmorHotbar = true;
@ -157,10 +157,10 @@ public class DragonsTeams extends TeamGame
if (_dragons.size() < 7)
{
CreatureAllowOverride.SetOption(true);
CreatureAllowOverride.setOption(true);
EnderDragon ent = GetSpectatorLocation().getWorld().spawn(_dragonSpawns.get(0), EnderDragon.class);
UtilEnt.Vegetate(ent);
CreatureAllowOverride.SetOption(false);
CreatureAllowOverride.setOption(false);
ent.getWorld().playSound(ent.getLocation(), Sound.ENDERDRAGON_GROWL, 20f, 1f);

View File

@ -111,10 +111,10 @@ public class Draw extends SoloGame
"Hints are given at top of screen",
});
this.StrictAntiHack.SetOption(true);
this.Damage.SetOption(false);
this.HungerSet.SetOption(20);
this.WorldTimeSet.SetOption(8000);
this.StrictAntiHack.setOption(true);
this.Damage.setOption(false);
this.HungerSet.setOption(20);
this.WorldTimeSet.setOption(8000);
_words = new String[]
{

View File

@ -113,41 +113,41 @@ public class EventGame extends Game
""
});
this.JoinInProgress.SetOption(true);
this.JoinInProgress.setOption(true);
this.DamageTeamSelf.SetOption(true);
this.DamagePvP.SetOption(false);
this.DamageEvP.SetOption(false);
this.DamagePvE.SetOption(false);
this.DamageTeamSelf.setOption(true);
this.DamagePvP.setOption(false);
this.DamageEvP.setOption(false);
this.DamagePvE.setOption(false);
this.DeathMessages.SetOption(false);
this.DeathOut.SetOption(false);
this.DeathMessages.setOption(false);
this.DeathOut.setOption(false);
this.CanAddStats = false;
this.CanGiveLoot = false;
this.GadgetsDisabled.SetOption(false);
this.GadgetsDisabled.setOption(false);
this.TeleportsDisqualify.SetOption(false);
this.TeleportsDisqualify.setOption(false);
this.PrepareFreeze.SetOption(false);
this.PrepareFreeze.setOption(false);
this.BlockPlaceCreative.SetOption(true);
this.BlockBreakCreative.SetOption(true);
this.BlockPlaceCreative.setOption(true);
this.BlockBreakCreative.setOption(true);
this.InventoryClick.SetOption(true);
this.InventoryOpenBlock.SetOption(true);
this.InventoryOpenChest.SetOption(true);
this.InventoryClick.setOption(true);
this.InventoryOpenBlock.setOption(true);
this.InventoryOpenChest.setOption(true);
//Dont timeout
this.GameTimeout.SetOption(-1);
this.GameTimeout.setOption(-1);
_mps = manager.GetGameHostManager();
_functionSigns = new HashMap<>();
_powerdedSigns = new ArrayList<>();
this.CreatureAllow.SetOption(true);
this.CreatureAllow.setOption(true);
_customAreas = new HashMap<>();
}
@ -989,13 +989,13 @@ public class EventGame extends Game
if(Manager.GetEventModule().getDamagePlayers().contains(event.GetDamagerPlayer(true)))
{
if(!Manager.GetGame().DamagePvP.GetOption())
if(!Manager.GetGame().DamagePvP.getOption())
{
Manager.GetGame().Damage.SetOption(true);
Manager.GetGame().DamagePvP.SetOption(true);
Manager.GetGame().Damage.setOption(true);
Manager.GetGame().DamagePvP.setOption(true);
Bukkit.getPluginManager().callEvent(event);
Manager.GetGame().DamagePvP.SetOption(false);
Manager.GetGame().Damage.SetOption(false);
Manager.GetGame().DamagePvP.setOption(false);
Manager.GetGame().Damage.setOption(false);
}
return;
}
@ -1032,13 +1032,13 @@ public class EventGame extends Game
continue;
}
}
if(!Manager.GetGame().DamagePvP.GetOption())
if(!Manager.GetGame().DamagePvP.getOption())
{
Manager.GetGame().Damage.SetOption(true);
Manager.GetGame().DamagePvP.SetOption(true);
Manager.GetGame().Damage.setOption(true);
Manager.GetGame().DamagePvP.setOption(true);
Bukkit.getPluginManager().callEvent(event);
Manager.GetGame().DamagePvP.SetOption(false);
Manager.GetGame().Damage.SetOption(false);
Manager.GetGame().DamagePvP.setOption(false);
Manager.GetGame().Damage.setOption(false);
}
}
}

View File

@ -303,28 +303,28 @@ public class EventModule extends MiniPlugin
//XXX Settings
else if (event.getMessage().toLowerCase().equals("/e damage all"))
{
Manager.GetGame().Damage.SetOption(!Manager.GetGame().Damage.GetOption());
Manager.GetGame().Announce(F.main("Event Settings", F.value("Damage All", F.tf(Manager.GetGame().Damage.GetOption()))));
Manager.GetGame().Damage.setOption(!Manager.GetGame().Damage.getOption());
Manager.GetGame().Announce(F.main("Event Settings", F.value("Damage All", F.tf(Manager.GetGame().Damage.getOption()))));
}
else if (event.getMessage().toLowerCase().equals("/e damage pvp"))
{
Manager.GetGame().DamagePvP.SetOption(!Manager.GetGame().DamagePvP.GetOption());
Manager.GetGame().Announce(F.main("Event Settings", F.value("Damage PvP", F.tf(Manager.GetGame().DamagePvP.GetOption()))));
Manager.GetGame().DamagePvP.setOption(!Manager.GetGame().DamagePvP.getOption());
Manager.GetGame().Announce(F.main("Event Settings", F.value("Damage PvP", F.tf(Manager.GetGame().DamagePvP.getOption()))));
}
else if (event.getMessage().toLowerCase().equals("/e damage pve"))
{
Manager.GetGame().DamagePvE.SetOption(!Manager.GetGame().DamagePvE.GetOption());
Manager.GetGame().Announce(F.main("Event Settings", F.value("Damage PvE", F.tf(Manager.GetGame().DamagePvE.GetOption()))));
Manager.GetGame().DamagePvE.setOption(!Manager.GetGame().DamagePvE.getOption());
Manager.GetGame().Announce(F.main("Event Settings", F.value("Damage PvE", F.tf(Manager.GetGame().DamagePvE.getOption()))));
}
else if (event.getMessage().toLowerCase().equals("/e damage evp"))
{
Manager.GetGame().DamageEvP.SetOption(!Manager.GetGame().DamageEvP.GetOption());
Manager.GetGame().Announce(F.main("Event Settings", F.value("Damage EvP", F.tf(Manager.GetGame().DamageEvP.GetOption()))));
Manager.GetGame().DamageEvP.setOption(!Manager.GetGame().DamageEvP.getOption());
Manager.GetGame().Announce(F.main("Event Settings", F.value("Damage EvP", F.tf(Manager.GetGame().DamageEvP.getOption()))));
}
else if (event.getMessage().toLowerCase().equals("/e damage fall"))
{
Manager.GetGame().DamageFall.SetOption(!Manager.GetGame().DamageFall.GetOption());
Manager.GetGame().Announce(F.main("Event Settings", F.value("Damage Fall", F.tf(Manager.GetGame().DamageFall.GetOption()))));
Manager.GetGame().DamageFall.setOption(!Manager.GetGame().DamageFall.getOption());
Manager.GetGame().Announce(F.main("Event Settings", F.value("Damage Fall", F.tf(Manager.GetGame().DamageFall.getOption()))));
}
else if (args[0].equalsIgnoreCase("health"))
{
@ -336,18 +336,18 @@ public class EventModule extends MiniPlugin
}
else if (event.getMessage().toLowerCase().equals("/e item drop"))
{
Manager.GetGame().ItemDrop.SetOption(!Manager.GetGame().ItemDrop.GetOption());
Manager.GetGame().Announce(F.main("Event Settings", F.value("Item Drop", F.tf(Manager.GetGame().ItemDrop.GetOption()))));
Manager.GetGame().ItemDrop.setOption(!Manager.GetGame().ItemDrop.getOption());
Manager.GetGame().Announce(F.main("Event Settings", F.value("Item Drop", F.tf(Manager.GetGame().ItemDrop.getOption()))));
}
else if (event.getMessage().toLowerCase().equals("/e item pickup"))
{
Manager.GetGame().ItemPickup.SetOption(!Manager.GetGame().ItemPickup.GetOption());
Manager.GetGame().Announce(F.main("Event Settings", F.value("Item Pickup", F.tf(Manager.GetGame().ItemPickup.GetOption()))));
Manager.GetGame().ItemPickup.setOption(!Manager.GetGame().ItemPickup.getOption());
Manager.GetGame().Announce(F.main("Event Settings", F.value("Item Pickup", F.tf(Manager.GetGame().ItemPickup.getOption()))));
}
else if (event.getMessage().toLowerCase().equals("/e blockplace"))
{
Manager.GetGame().BlockPlace.SetOption(!Manager.GetGame().BlockPlace.GetOption());
Manager.GetGame().Announce(F.main("Event Settings", F.value("Block Place", F.tf(Manager.GetGame().BlockPlace.GetOption()))));
Manager.GetGame().BlockPlace.setOption(!Manager.GetGame().BlockPlace.getOption());
Manager.GetGame().Announce(F.main("Event Settings", F.value("Block Place", F.tf(Manager.GetGame().BlockPlace.getOption()))));
}
else if (args.length >= 4 && args[0].equalsIgnoreCase("blockplace")
&& (args[1].equalsIgnoreCase("whitelist") || args[1].equalsIgnoreCase("blacklist")))
@ -356,8 +356,8 @@ public class EventModule extends MiniPlugin
}
else if (event.getMessage().toLowerCase().equals("/e blockbreak"))
{
Manager.GetGame().BlockBreak.SetOption(!Manager.GetGame().BlockBreak.GetOption());
Manager.GetGame().Announce(F.main("Event Settings", F.value("Block Break", F.tf(Manager.GetGame().BlockBreak.GetOption()))));
Manager.GetGame().BlockBreak.setOption(!Manager.GetGame().BlockBreak.getOption());
Manager.GetGame().Announce(F.main("Event Settings", F.value("Block Break", F.tf(Manager.GetGame().BlockBreak.getOption()))));
}
else if (args.length >= 4 && args[0].equalsIgnoreCase("blockbreak")
&& (args[1].equalsIgnoreCase("whitelist") || args[1].equalsIgnoreCase("blacklist")))
@ -456,32 +456,32 @@ public class EventModule extends MiniPlugin
public void listSettings(Player player)
{
UtilPlayer.message(player, F.value("Damage All", F.tf(Manager.GetGame().Damage.GetOption())));
UtilPlayer.message(player, F.value("Damage PvP", F.tf(Manager.GetGame().DamagePvP.GetOption())));
UtilPlayer.message(player, F.value("Damage PvE", F.tf(Manager.GetGame().DamagePvE.GetOption())));
UtilPlayer.message(player, F.value("Damage EvP", F.tf(Manager.GetGame().DamageEvP.GetOption())));
UtilPlayer.message(player, F.value("Damage Fall", F.tf(Manager.GetGame().DamageFall.GetOption())));
UtilPlayer.message(player, F.value("Damage All", F.tf(Manager.GetGame().Damage.getOption())));
UtilPlayer.message(player, F.value("Damage PvP", F.tf(Manager.GetGame().DamagePvP.getOption())));
UtilPlayer.message(player, F.value("Damage PvE", F.tf(Manager.GetGame().DamagePvE.getOption())));
UtilPlayer.message(player, F.value("Damage EvP", F.tf(Manager.GetGame().DamageEvP.getOption())));
UtilPlayer.message(player, F.value("Damage Fall", F.tf(Manager.GetGame().DamageFall.getOption())));
UtilPlayer.message(player, F.value("Health Set", Manager.GetGame().HealthSet+""));
UtilPlayer.message(player, F.value("Hunger Set", Manager.GetGame().HungerSet+""));
UtilPlayer.message(player, F.value("Item Pickup", F.tf(Manager.GetGame().ItemPickup.GetOption())));
UtilPlayer.message(player, F.value("Item Drop", F.tf(Manager.GetGame().ItemDrop.GetOption())));
UtilPlayer.message(player, F.value("Block Place Creative", F.tf(Manager.GetGame().BlockPlaceCreative.GetOption())));
UtilPlayer.message(player, F.value("Block Break Creative", F.tf(Manager.GetGame().BlockBreakCreative.GetOption())));
UtilPlayer.message(player, F.value("Block Place", F.tf(Manager.GetGame().BlockPlace.GetOption())));
UtilPlayer.message(player, F.value("Block Place Whitelist", UtilText.listToString(Manager.GetGame().BlockPlaceAllow.GetOption(), true)));
UtilPlayer.message(player, F.value("Block Place Blacklist", UtilText.listToString(Manager.GetGame().BlockPlaceDeny.GetOption(), true)));
UtilPlayer.message(player, F.value("Block Break", F.tf(Manager.GetGame().BlockPlace.GetOption())));
UtilPlayer.message(player, F.value("Block Break Whitelist", UtilText.listToString(Manager.GetGame().BlockBreakAllow.GetOption(), true)));
UtilPlayer.message(player, F.value("Block Break Blacklist", UtilText.listToString(Manager.GetGame().BlockBreakDeny.GetOption(), true)));
UtilPlayer.message(player, F.value("Item Pickup", F.tf(Manager.GetGame().ItemPickup.getOption())));
UtilPlayer.message(player, F.value("Item Drop", F.tf(Manager.GetGame().ItemDrop.getOption())));
UtilPlayer.message(player, F.value("Block Place Creative", F.tf(Manager.GetGame().BlockPlaceCreative.getOption())));
UtilPlayer.message(player, F.value("Block Break Creative", F.tf(Manager.GetGame().BlockBreakCreative.getOption())));
UtilPlayer.message(player, F.value("Block Place", F.tf(Manager.GetGame().BlockPlace.getOption())));
UtilPlayer.message(player, F.value("Block Place Whitelist", UtilText.listToString(Manager.GetGame().BlockPlaceAllow.getOption(), true)));
UtilPlayer.message(player, F.value("Block Place Blacklist", UtilText.listToString(Manager.GetGame().BlockPlaceDeny.getOption(), true)));
UtilPlayer.message(player, F.value("Block Break", F.tf(Manager.GetGame().BlockPlace.getOption())));
UtilPlayer.message(player, F.value("Block Break Whitelist", UtilText.listToString(Manager.GetGame().BlockBreakAllow.getOption(), true)));
UtilPlayer.message(player, F.value("Block Break Blacklist", UtilText.listToString(Manager.GetGame().BlockBreakDeny.getOption(), true)));
UtilPlayer.message(player, F.value("Time Set", Manager.GetGame().WorldTimeSet+""));
UtilPlayer.message(player, F.value("Mob griefing", F.tf(_mobGriefing)));
}
public void commandBlockBreakInCreative(Player player, String[] args)
{
Manager.GetGame().BlockBreakCreative.SetOption(!Manager.GetGame().BlockBreakCreative.GetOption());
Manager.GetGame().BlockBreakCreative.setOption(!Manager.GetGame().BlockBreakCreative.getOption());
UtilPlayer.message(player, F.main("Settings", "BlockBreakCreative: " + F.tf(Manager.GetGame().BlockBreakCreative.GetOption())));
UtilPlayer.message(player, F.main("Settings", "BlockBreakCreative: " + F.tf(Manager.GetGame().BlockBreakCreative.getOption())));
}
public void commandStacker(Player player, String[] args)
@ -513,9 +513,9 @@ public class EventModule extends MiniPlugin
public void commandBlockPlaceInCreative(Player player, String[] args)
{
Manager.GetGame().BlockPlaceCreative.SetOption(!Manager.GetGame().BlockPlaceCreative.GetOption());
Manager.GetGame().BlockPlaceCreative.setOption(!Manager.GetGame().BlockPlaceCreative.getOption());
UtilPlayer.message(player, F.main("Settings", "BlockPlaceCreative: " + F.tf(Manager.GetGame().BlockPlaceCreative.GetOption())));
UtilPlayer.message(player, F.main("Settings", "BlockPlaceCreative: " + F.tf(Manager.GetGame().BlockPlaceCreative.getOption())));
}
public void commandMobGriefing(Player player, String[] args)
@ -535,44 +535,44 @@ public class EventModule extends MiniPlugin
{
if (command.equalsIgnoreCase("add"))
{
Manager.GetGame().BlockPlaceAllow.GetOption().add(blockId);
Manager.GetGame().BlockPlaceAllow.getOption().add(blockId);
UtilPlayer.message(player, F.main("Event Settings", F.value("Block Place Whitelist", "Added " + blockId)));
}
else if (command.equalsIgnoreCase("remove"))
{
Manager.GetGame().BlockPlaceAllow.GetOption().remove(blockId);
Manager.GetGame().BlockPlaceAllow.getOption().remove(blockId);
UtilPlayer.message(player, F.main("Event Settings", F.value("Block Place Whitelist", "Removed " + blockId)));
}
else if (command.equalsIgnoreCase("clear"))
{
Manager.GetGame().BlockPlaceAllow.GetOption().clear();
Manager.GetGame().BlockPlaceAllow.getOption().clear();
UtilPlayer.message(player, F.main("Event Settings", F.value("Block Place Whitelist", "Cleared")));
}
else if (command.equalsIgnoreCase("list"))
{
UtilPlayer.message(player, F.main("Event Settings", F.value("Block Place Whitelist", UtilText.listToString(Manager.GetGame().BlockPlaceAllow.GetOption(), true))));
UtilPlayer.message(player, F.main("Event Settings", F.value("Block Place Whitelist", UtilText.listToString(Manager.GetGame().BlockPlaceAllow.getOption(), true))));
}
}
else
{
if (command.equalsIgnoreCase("add"))
{
Manager.GetGame().BlockPlaceDeny.GetOption().add(blockId);
Manager.GetGame().BlockPlaceDeny.getOption().add(blockId);
UtilPlayer.message(player, F.main("Event Settings", F.value("Block Place Blacklist", "Added " + blockId)));
}
else if (command.equalsIgnoreCase("remove"))
{
Manager.GetGame().BlockPlaceDeny.GetOption().remove(blockId);
Manager.GetGame().BlockPlaceDeny.getOption().remove(blockId);
UtilPlayer.message(player, F.main("Event Settings", F.value("Block Place Blacklist", "Removed " + blockId)));
}
else if (command.equalsIgnoreCase("clear"))
{
Manager.GetGame().BlockPlaceDeny.GetOption().clear();
Manager.GetGame().BlockPlaceDeny.getOption().clear();
UtilPlayer.message(player, F.main("Event Settings", F.value("Block Place Blacklist", "Cleared")));
}
else if (command.equalsIgnoreCase("list"))
{
UtilPlayer.message(player, F.main("Event Settings", F.value("Block Place Blacklist", UtilText.listToString(Manager.GetGame().BlockPlaceDeny.GetOption(), true))));
UtilPlayer.message(player, F.main("Event Settings", F.value("Block Place Blacklist", UtilText.listToString(Manager.GetGame().BlockPlaceDeny.getOption(), true))));
}
}
@ -596,44 +596,44 @@ public class EventModule extends MiniPlugin
{
if (command.equalsIgnoreCase("add"))
{
Manager.GetGame().BlockBreakAllow.GetOption().add(blockId);
Manager.GetGame().BlockBreakAllow.getOption().add(blockId);
UtilPlayer.message(player, F.main("Event Settings", F.value("Block Break Whitelist", "Added " + blockId)));
}
else if (command.equalsIgnoreCase("remove"))
{
Manager.GetGame().BlockBreakAllow.GetOption().remove(blockId);
Manager.GetGame().BlockBreakAllow.getOption().remove(blockId);
UtilPlayer.message(player, F.main("Event Settings", F.value("Block Break Whitelist", "Removed " + blockId)));
}
else if (command.equalsIgnoreCase("clear"))
{
Manager.GetGame().BlockBreakAllow.GetOption().clear();
Manager.GetGame().BlockBreakAllow.getOption().clear();
UtilPlayer.message(player, F.main("Event Settings", F.value("Block Break Whitelist", "Cleared")));
}
else if (command.equalsIgnoreCase("list"))
{
UtilPlayer.message(player, F.main("Event Settings", F.value("Block Break Whitelist", UtilText.listToString(Manager.GetGame().BlockBreakAllow.GetOption(), true))));
UtilPlayer.message(player, F.main("Event Settings", F.value("Block Break Whitelist", UtilText.listToString(Manager.GetGame().BlockBreakAllow.getOption(), true))));
}
}
else
{
if (command.equalsIgnoreCase("add"))
{
Manager.GetGame().BlockBreakDeny.GetOption().add(blockId);
Manager.GetGame().BlockBreakDeny.getOption().add(blockId);
UtilPlayer.message(player, F.main("Event Settings", F.value("Block Break Blacklist", "Added " + blockId)));
}
else if (command.equalsIgnoreCase("remove"))
{
Manager.GetGame().BlockBreakDeny.GetOption().remove(blockId);
Manager.GetGame().BlockBreakDeny.getOption().remove(blockId);
UtilPlayer.message(player, F.main("Event Settings", F.value("Block Break Blacklist", "Removed " + blockId)));
}
else if (command.equalsIgnoreCase("clear"))
{
Manager.GetGame().BlockBreakDeny.GetOption().clear();
Manager.GetGame().BlockBreakDeny.getOption().clear();
UtilPlayer.message(player, F.main("Event Settings", F.value("Block Break Blacklist", "Cleared")));
}
else if (command.equalsIgnoreCase("list"))
{
UtilPlayer.message(player, F.main("Event Settings", F.value("Block Break Blacklist", UtilText.listToString(Manager.GetGame().BlockBreakDeny.GetOption(), true))));
UtilPlayer.message(player, F.main("Event Settings", F.value("Block Break Blacklist", UtilText.listToString(Manager.GetGame().BlockBreakDeny.getOption(), true))));
}
}
@ -660,9 +660,9 @@ public class EventModule extends MiniPlugin
if (health > 20)
health = 20;
Manager.GetGame().HealthSet.SetOption(health);
Manager.GetGame().HealthSet.setOption(health);
if (Manager.GetGame().HealthSet.GetOption() == -1)
if (Manager.GetGame().HealthSet.getOption() == -1)
Manager.GetGame().Announce(F.main("Event Settings", F.value("Health Set", "Disabled")));
else
Manager.GetGame().Announce(F.main("Event Settings", F.value("Health Set", Manager.GetGame().HealthSet + "")));
@ -691,9 +691,9 @@ public class EventModule extends MiniPlugin
if (hunger > 20)
hunger = 20;
Manager.GetGame().HungerSet.SetOption(hunger);
Manager.GetGame().HungerSet.setOption(hunger);
if (Manager.GetGame().HungerSet.GetOption() == -1)
if (Manager.GetGame().HungerSet.getOption() == -1)
Manager.GetGame().Announce(F.main("Event Settings", F.value("Hunger Set", "Disabled")));
else
Manager.GetGame().Announce(F.main("Event Settings", F.value("Hunger Set", Manager.GetGame().HungerSet + "")));
@ -722,9 +722,9 @@ public class EventModule extends MiniPlugin
if (time > 24000)
time = 24000;
Manager.GetGame().WorldTimeSet.SetOption(time);
Manager.GetGame().WorldTimeSet.setOption(time);
if (Manager.GetGame().WorldTimeSet.GetOption() == -1)
if (Manager.GetGame().WorldTimeSet.getOption() == -1)
Manager.GetGame().Announce(F.main("Event Settings", F.value("Time Set", "Disabled")));
else
Manager.GetGame().Announce(F.main("Event Settings", F.value("Time Set", Manager.GetGame().WorldTimeSet + "")));
@ -1017,25 +1017,25 @@ public class EventModule extends MiniPlugin
//Spec
public void commandSpectators(Player player, String[] args)
{
Manager.GetGame().JoinInProgress.SetOption(!Manager.GetGame().JoinInProgress.GetOption());
Manager.GetGame().JoinInProgress.setOption(!Manager.GetGame().JoinInProgress.getOption());
UtilPlayer.message(player, F.main("Settings", "Spectator Join: " + F.tf(Manager.GetGame().JoinInProgress.GetOption())));
UtilPlayer.message(player, F.main("Settings", "Spectator Join: " + F.tf(Manager.GetGame().JoinInProgress.getOption())));
}
//Deathout
public void commandDeathout(Player player, String[] args)
{
Manager.GetGame().DeathOut.SetOption(!Manager.GetGame().DeathOut.GetOption());
Manager.GetGame().DeathOut.setOption(!Manager.GetGame().DeathOut.getOption());
UtilPlayer.message(player, F.main("Settings", "Deathout: " + F.tf(Manager.GetGame().DeathOut.GetOption())));
UtilPlayer.message(player, F.main("Settings", "Deathout: " + F.tf(Manager.GetGame().DeathOut.getOption())));
}
//QuitOut
public void commandQuitOut(Player player, String[] args)
{
Manager.GetGame().QuitOut.SetOption(!Manager.GetGame().QuitOut.GetOption());
Manager.GetGame().QuitOut.setOption(!Manager.GetGame().QuitOut.getOption());
UtilPlayer.message(player, F.main("Settings", "QuitOut: " + F.tf(Manager.GetGame().QuitOut.GetOption())));
UtilPlayer.message(player, F.main("Settings", "QuitOut: " + F.tf(Manager.GetGame().QuitOut.getOption())));
}
//Double Jump
@ -1246,9 +1246,9 @@ public class EventModule extends MiniPlugin
HashSet<Entity> entSet = new HashSet<Entity>();
for (int i = 0 ; i < count ; i++)
{
Manager.GetGame().CreatureAllowOverride.SetOption(true);
Manager.GetGame().CreatureAllowOverride.setOption(true);
entSet.add(Manager.GetCreature().SpawnEntity(caller.getTargetBlock((HashSet<Byte>)null, 150).getLocation().add(0.5, 1, 0.5), type));
Manager.GetGame().CreatureAllowOverride.SetOption(false);
Manager.GetGame().CreatureAllowOverride.setOption(false);
}
//Search Vars

View File

@ -130,13 +130,13 @@ public class Evolution extends SoloGame
"First to get through " + _mobKits.size() + " evolutions wins!"
};
DamageTeamSelf.SetOption(true);
DamageTeamSelf.setOption(true);
HungerSet.SetOption(20);
HungerSet.setOption(20);
DeathOut.SetOption(false);
DeathOut.setOption(false);
PrepareFreeze.SetOption(false);
PrepareFreeze.setOption(false);
GemKillDeathRespawn = 2;
GemAssistDeathRespawn = .5;
@ -144,13 +144,13 @@ public class Evolution extends SoloGame
CompassEnabled = true;
CompassGiveItem = false;
AutomaticRespawn.SetOption(false);
DeathSpectateSecs.SetOption(4.0);
AutomaticRespawn.setOption(false);
DeathSpectateSecs.setOption(4.0);
CreatureAllow.SetOption(false);
InventoryClick.SetOption(false);
CreatureAllow.setOption(false);
InventoryClick.setOption(false);
InventoryOpenBlock.SetOption(false);
InventoryOpenBlock.setOption(false);
Manager.GetDamage().GetCombatManager().setUseWeaponName(AttackReason.Attack);

View File

@ -103,18 +103,18 @@ public class Gladiators extends SoloGame
"There is only one victor!"
});
Damage.SetOption(true);
DamageFall.SetOption(false);
DamagePvP.SetOption(true);
DamageSelf.SetOption(true);
DamageTeamSelf.SetOption(true);
HungerSet.SetOption(20);
DontAllowOverfill.SetOption(true);
Damage.setOption(true);
DamageFall.setOption(false);
DamagePvP.setOption(true);
DamageSelf.setOption(true);
DamageTeamSelf.setOption(true);
HungerSet.setOption(20);
DontAllowOverfill.setOption(true);
EnableTutorials = false;
BlockBreakAllow.GetOption().add(Material.SUGAR_CANE_BLOCK.getId());
BlockBreakAllow.GetOption().add(Material.DEAD_BUSH.getId());
BlockBreakAllow.GetOption().add(Material.LONG_GRASS.getId());
BlockBreakAllow.getOption().add(Material.SUGAR_CANE_BLOCK.getId());
BlockBreakAllow.getOption().add(Material.DEAD_BUSH.getId());
BlockBreakAllow.getOption().add(Material.LONG_GRASS.getId());
registerStatTrackers(
new BrawlerTracker(this),
@ -156,10 +156,10 @@ public class Gladiators extends SoloGame
e.getTutorial().getPhase(1).setLocation(white);
e.getTutorial().getPhase(1).setTarget(orange);
CreatureAllowOverride.SetOption(true);
CreatureAllowOverride.setOption(true);
Zombie zombie1 = (Zombie) WorldData.World.spawnEntity(spawn1, EntityType.ZOMBIE);
Zombie zombie2 = (Zombie) WorldData.World.spawnEntity(spawn2, EntityType.ZOMBIE);
CreatureAllowOverride.SetOption(false);
CreatureAllowOverride.setOption(false);
for (Zombie zombie : Arrays.asList(zombie1, zombie2))
{
GameProfile tiger = new ProfileLoader(UUIDFetcher.getUUIDOf("WilliamTiger").toString(), "WilliamTiger").loadProfile();

View File

@ -107,14 +107,14 @@ public class Gravity extends SoloGame
"Restore Oxygen at the Emerald Blocks",
};
this.DamagePvP.SetOption(false);
this.HungerSet.SetOption(10);
this.DamagePvP.setOption(false);
this.HungerSet.setOption(10);
this.WorldTimeSet.SetOption(18000);
this.WorldTimeSet.setOption(18000);
this.CompassEnabled = true;
this.WorldBoundaryKill.SetOption(false);
this.WorldBoundaryKill.setOption(false);
registerChatStats(
Kills,
@ -327,9 +327,9 @@ public class Gravity extends SoloGame
//Projectile
Vector velocity = player.getLocation().getDirection().multiply(0.4);
this.CreatureAllowOverride.SetOption(true);
this.CreatureAllowOverride.setOption(true);
Slime slime = player.getWorld().spawn(player.getEyeLocation().add(player.getLocation().getDirection().multiply(2)), Slime.class);
this.CreatureAllowOverride.SetOption(false);
this.CreatureAllowOverride.setOption(false);
slime.setSize(1);
UtilEnt.Vegetate(slime, true);

View File

@ -47,9 +47,9 @@ public abstract class GravityObject
else
Vel = new Vector(0,0,0);
Host.CreatureAllowOverride.SetOption(true);
Host.CreatureAllowOverride.setOption(true);
Base = ent.getWorld().spawn(ent.getLocation().subtract(0, 0, 0), Zombie.class);
Host.CreatureAllowOverride.SetOption(false);
Host.CreatureAllowOverride.setOption(false);
Base.setMaxHealth(60);
Base.setHealth(60);

View File

@ -123,20 +123,20 @@ public class Halloween extends SoloGame
"Kill the Pumpkin King"
});
this.DamagePvP.SetOption(false);
this.DamagePvP.setOption(false);
this.WorldTimeSet.SetOption(16000);
this.WorldTimeSet.setOption(16000);
this.ItemDrop.SetOption(false);
this.ItemPickup.SetOption(false);
this.ItemDrop.setOption(false);
this.ItemPickup.setOption(false);
this.PrepareFreeze.SetOption(false);
this.PrepareFreeze.setOption(false);
//this.HungerSet = 20;
this.WorldBoundaryKill.SetOption(false);
this.WorldBoundaryKill.setOption(false);
this.DontAllowOverfill.SetOption(true);
this.DontAllowOverfill.setOption(true);
registerChatStats(
DamageDealt,

View File

@ -28,7 +28,7 @@ public abstract class CreatureBase<T extends LivingEntity>
Host = game;
_name = name;
game.CreatureAllowOverride.SetOption(true);
game.CreatureAllowOverride.setOption(true);
_ent = loc.getWorld().spawn(loc, mobClass);
@ -40,7 +40,7 @@ public abstract class CreatureBase<T extends LivingEntity>
SpawnCustom(_ent);
game.CreatureAllowOverride.SetOption(false);
game.CreatureAllowOverride.setOption(false);
}
public abstract void SpawnCustom(T ent);

View File

@ -377,9 +377,9 @@ public class PumpkinKing extends CreatureBase<Skeleton>
for (int i=0 ; i<_minionsMax ; i++)
{
Host.CreatureAllowOverride.SetOption(true);
Host.CreatureAllowOverride.setOption(true);
Skeleton skel = GetEntity().getWorld().spawn(GetEntity().getLocation(), Skeleton.class);
Host.CreatureAllowOverride.SetOption(false);
Host.CreatureAllowOverride.setOption(false);
Host.Manager.GetCondition().Factory().Invisible("Cloak", skel, skel, 999999, 0, false, false, false);
@ -642,13 +642,13 @@ public class PumpkinKing extends CreatureBase<Skeleton>
for (int i=0 ; i<toSpawn ; i++)
{
//Spawn
Host.CreatureAllowOverride.SetOption(true);
Host.CreatureAllowOverride.setOption(true);
Blaze ent = GetEntity().getWorld().spawn(GetEntity().getLocation().add(0, 6, 0), Blaze.class);
ent.getEquipment().setHelmet(new ItemStack(Material.PUMPKIN));
_shields.add(ent);
UtilEnt.Vegetate(ent);
//ent.setSize(1);
Host.CreatureAllowOverride.SetOption(false);
Host.CreatureAllowOverride.setOption(false);
//Orbit
ShieldOrbit(false);

View File

@ -85,9 +85,9 @@ public abstract class WaveBase
SpawnBeacons(_spawns);
//Spawn
Host.CreatureAllowOverride.SetOption(true);
Host.CreatureAllowOverride.setOption(true);
Spawn(_tick++);
Host.CreatureAllowOverride.SetOption(false);
Host.CreatureAllowOverride.setOption(false);
return false;
}

View File

@ -32,10 +32,10 @@ public class WaveVictory extends WaveBase
mob.GetEntity().damage(5);
//Time
if (Host.WorldTimeSet.GetOption() != 6000)
if (Host.WorldTimeSet.getOption() != 6000)
{
Host.WorldTimeSet.SetOption((Host.WorldTimeSet.GetOption() + 50)%24000);
Host.WorldData.World.setTime(Host.WorldTimeSet.GetOption());
Host.WorldTimeSet.setOption((Host.WorldTimeSet.getOption() + 50)%24000);
Host.WorldData.World.setTime(Host.WorldTimeSet.getOption());
}
}
}

View File

@ -314,10 +314,10 @@ public class HideSeek extends TeamGame
C.cRed + "Seekers" + C.cWhite + " Find and kill the Hiders!",
});
this.DamageSelf.SetOption(false);
this.DeathOut.SetOption(false);
this.HungerSet.SetOption(20);
this.PrepareFreeze.SetOption(false);
this.DamageSelf.setOption(false);
this.DeathOut.setOption(false);
this.HungerSet.setOption(20);
this.PrepareFreeze.setOption(false);
_allowedBlocks = new ArrayList<Material>();
_allowedBlocks.add(Material.TNT);
@ -456,9 +456,9 @@ public class HideSeek extends TeamGame
if (GetKits().length <= 5 + i)
continue;
this.CreatureAllowOverride.SetOption(true);
this.CreatureAllowOverride.setOption(true);
Entity ent = GetKits()[5 + i].SpawnEntity(WorldData.GetDataLocs("RED").get(i));
this.CreatureAllowOverride.SetOption(false);
this.CreatureAllowOverride.setOption(false);
Manager.GetLobby().AddKitLocation(ent, GetKits()[5 + i], WorldData.GetDataLocs("RED").get(i));
}
@ -761,7 +761,7 @@ public class HideSeek extends TeamGame
if (event.GetState() != GameState.Prepare)
return;
this.CreatureAllowOverride.SetOption(true);
this.CreatureAllowOverride.setOption(true);
for (Location loc : WorldData.GetDataLocs("WHITE"))
_mobs.put(loc.getWorld().spawn(loc, Sheep.class), loc);
@ -775,7 +775,7 @@ public class HideSeek extends TeamGame
for (Location loc : WorldData.GetDataLocs("BROWN"))
_mobs.put(loc.getWorld().spawn(loc, Cow.class), loc);
this.CreatureAllowOverride.SetOption(false);
this.CreatureAllowOverride.setOption(false);
}
@EventHandler(priority = EventPriority.LOW)

View File

@ -50,13 +50,13 @@ public class HoleInTheWall extends SoloGame
"Hole in wall"
});
DamagePvP.SetOption(false);
DamagePvE.SetOption(false);
DamageEvP.SetOption(false);
DamageSelf.SetOption(false);
DamageFall.SetOption(false);
HungerSet.SetOption(20);
WorldTimeSet.SetOption(8000);
DamagePvP.setOption(false);
DamagePvE.setOption(false);
DamageEvP.setOption(false);
DamageSelf.setOption(false);
DamageFall.setOption(false);
HungerSet.setOption(20);
WorldTimeSet.setOption(8000);
registerChatStats();
}

View File

@ -92,28 +92,28 @@ public class BombLobbers extends TeamGame implements IThrown
"Last team alive wins!"
});
DamageFall.SetOption(true);
DamageEvP.SetOption(true);
DamageFall.setOption(true);
DamageEvP.setOption(true);
WorldWaterDamage.SetOption(5);
WorldWaterDamage.setOption(5);
PrepareFreeze.SetOption(false);
PrepareFreeze.setOption(false);
TeamArmor = true;
TeamArmorHotbar = true;
InventoryOpenChest.SetOption(false);
InventoryOpenBlock.SetOption(false);
InventoryOpenChest.setOption(false);
InventoryOpenBlock.setOption(false);
ItemDrop.SetOption(false);
ItemDrop.setOption(false);
BlockPlace.SetOption(false);
BlockPlace.setOption(false);
Manager.GetExplosion().SetLiquidDamage(false);
HungerSet.SetOption(20);
HungerSet.setOption(20);
WorldTimeSet.SetOption(6000);
WorldTimeSet.setOption(6000);
registerStatTrackers(
new Tracker6Kill(this),
@ -140,7 +140,7 @@ public class BombLobbers extends TeamGame implements IThrown
if (WorldData.MapName.equalsIgnoreCase("Intergalactic"))
{
WorldTimeSet.SetOption(18000);
WorldTimeSet.setOption(18000);
}
}

View File

@ -46,18 +46,18 @@ public class Micro extends TeamGame
"Small game, big strategy!",
});
this.StrictAntiHack.SetOption(true);
this.StrictAntiHack.setOption(true);
this.TeamArmor = true;
this.TeamArmorHotbar = true;
this.InventoryClick.SetOption(true);
this.InventoryClick.setOption(true);
this.ItemDrop.SetOption(true);
this.ItemPickup.SetOption(true);
this.ItemDrop.setOption(true);
this.ItemPickup.setOption(true);
this.BlockBreak.SetOption(true);
this.BlockPlace.SetOption(true);
this.BlockBreak.setOption(true);
this.BlockPlace.setOption(true);
registerStatTrackers(
new KillsWithinGameStatTracker(this, 8, "Annihilation")

View File

@ -93,7 +93,7 @@ public class MilkCow extends SoloGame
});
this.CompassEnabled = true;
this.DeathOut.SetOption(false);
this.DeathOut.setOption(false);
_scoreObj = Scoreboard.GetScoreboard().registerNewObjective("Milk", "dummy");
_scoreObj.setDisplaySlot(DisplaySlot.BELOW_NAME);
@ -163,7 +163,7 @@ public class MilkCow extends SoloGame
for (Location loc : _chickens)
{
this.CreatureAllowOverride.SetOption(true);
this.CreatureAllowOverride.setOption(true);
Chicken ent = loc.getWorld().spawn(loc, Chicken.class);
if (Math.random() > 0.75)
{
@ -171,12 +171,12 @@ public class MilkCow extends SoloGame
ent.setAgeLock(true);
}
this.CreatureAllowOverride.SetOption(false);
this.CreatureAllowOverride.setOption(false);
}
for (Location loc : _pigs)
{
this.CreatureAllowOverride.SetOption(true);
this.CreatureAllowOverride.setOption(true);
Pig ent = loc.getWorld().spawn(loc, Pig.class);
if (Math.random() > 0.75)
{
@ -184,12 +184,12 @@ public class MilkCow extends SoloGame
ent.setAgeLock(true);
}
this.CreatureAllowOverride.SetOption(false);
this.CreatureAllowOverride.setOption(false);
}
for (Location loc : _villager)
{
this.CreatureAllowOverride.SetOption(true);
this.CreatureAllowOverride.setOption(true);
Villager ent = loc.getWorld().spawn(loc, Villager.class);
if (Math.random() > 0.75)
{
@ -197,7 +197,7 @@ public class MilkCow extends SoloGame
ent.setCustomNameVisible(true);
}
this.CreatureAllowOverride.SetOption(false);
this.CreatureAllowOverride.setOption(false);
}
}
@ -249,7 +249,7 @@ public class MilkCow extends SoloGame
while (_herd.size() < 5)
{
this.CreatureAllowOverride.SetOption(true);
this.CreatureAllowOverride.setOption(true);
Cow cow = host.getWorld().spawn(host.getLocation(), Cow.class);
if (Math.random() > 0.5)
{
@ -258,7 +258,7 @@ public class MilkCow extends SoloGame
}
_herd.add(cow);
this.CreatureAllowOverride.SetOption(false);
this.CreatureAllowOverride.setOption(false);
}
}

View File

@ -260,21 +260,21 @@ public class MineStrike extends TeamGame
_shopManager = new ShopManager(this);
this.StrictAntiHack.SetOption(true);
this.StrictAntiHack.setOption(true);
AnnounceStay.SetOption(false);
AnnounceStay.setOption(false);
this.HungerSet.SetOption(20);
this.HungerSet.setOption(20);
this.ItemDrop.SetOption(true);
this.ItemDrop.setOption(true);
this.DeathTeleport.SetOption(false);
this.DeathTeleport.setOption(false);
this.InventoryClick.SetOption(true);
this.InventoryClick.setOption(true);
this.JoinInProgress.SetOption(true);
this.JoinInProgress.setOption(true);
this.DontAllowOverfill.SetOption(true);
this.DontAllowOverfill.setOption(true);
_scoreObj = Scoreboard.GetScoreboard().registerNewObjective("HP", "dummy");
_scoreObj.setDisplaySlot(DisplaySlot.BELOW_NAME);
@ -2923,12 +2923,12 @@ public class MineStrike extends TeamGame
if (event.getMessage().contains("god"))
{
if (HealthSet.GetOption() == 20)
HealthSet.SetOption(-1);
if (HealthSet.getOption() == 20)
HealthSet.setOption(-1);
else
HealthSet.SetOption(20);
HealthSet.setOption(20);
Announce(C.cPurple + C.Bold + "God Mode: " + ChatColor.RESET + (HealthSet.GetOption() == 20));
Announce(C.cPurple + C.Bold + "God Mode: " + ChatColor.RESET + (HealthSet.getOption() == 20));
event.setCancelled(true);
}

View File

@ -70,16 +70,16 @@ public class MineWare extends SoloGame
"Other players lose one life.", "Last player with lives wins!"
});
DamageTeamSelf.SetOption(true);
DamagePvP.SetOption(false);
DamagePvE.SetOption(false);
DamageEvP.SetOption(false);
DamageFall.SetOption(false);
InventoryClick.SetOption(true);
DamageSelf.SetOption(false);
DeathOut.SetOption(false);
AutomaticRespawn.SetOption(false);
DeathMessages.SetOption(false);
DamageTeamSelf.setOption(true);
DamagePvP.setOption(false);
DamagePvE.setOption(false);
DamageEvP.setOption(false);
DamageFall.setOption(false);
InventoryClick.setOption(true);
DamageSelf.setOption(false);
DeathOut.setOption(false);
AutomaticRespawn.setOption(false);
DeathMessages.setOption(false);
Manager.GetCreature().SetDisableCustomDrops(true);
@ -298,7 +298,7 @@ public class MineWare extends SoloGame
@EventHandler
public void PlayerMoveCancel(PlayerMoveEvent event)
{
if (!PrepareFreeze.GetOption())
if (!PrepareFreeze.getOption())
return;
if (!_orderWaiting)

View File

@ -81,7 +81,7 @@ public class ChallengeDragonEgg extends Challenge
block.getLocation().add(0.5, 0.5, 0.5), 0.5F, 0.5F, 0.5F, 0,
11, ViewDist.MAX, UtilServer.getPlayers());
Host.CreatureAllowOverride.SetOption(true);
Host.CreatureAllowOverride.setOption(true);
for (int i = 0; i < 10; i++)
{
@ -106,7 +106,7 @@ public class ChallengeDragonEgg extends Challenge
}
}
Host.CreatureAllowOverride.SetOption(false);
Host.CreatureAllowOverride.setOption(false);
Player player = event.getPlayer();

View File

@ -100,13 +100,13 @@ public class ChallengeHitTargets extends Challenge
@Override
public void cleanupRoom()
{
Host.DamagePvP.SetOption(false);
Host.DamagePvP.setOption(false);
}
@Override
public void setupPlayers()
{
Host.DamagePvP.SetOption(true);
Host.DamagePvP.setOption(true);
ArrayList<Player> players = getChallengers();
for (Player player : players)

View File

@ -126,7 +126,7 @@ public class ChallengeMilkACow extends Challenge
}
}
Host.CreatureAllowOverride.SetOption(true);
Host.CreatureAllowOverride.setOption(true);
_villager = (Villager) getCenter().getWorld().spawnEntity(getCenter().clone().add(0, 1, 0), EntityType.VILLAGER);
_villager.setProfession(Profession.FARMER);
_villager.setCustomName(C.Bold + "Farmer Joe");
@ -156,7 +156,7 @@ public class ChallengeMilkACow extends Challenge
_milked.put(cow, new ArrayList<String>());
}
Host.CreatureAllowOverride.SetOption(false);
Host.CreatureAllowOverride.setOption(false);
}
@EventHandler

View File

@ -184,7 +184,7 @@ public class ChallengeNameThatSound extends ChallengeSeperateRooms
Collections.shuffle(entityType);
Host.CreatureAllowOverride.SetOption(true);
Host.CreatureAllowOverride.setOption(true);
int i = 0;
@ -205,7 +205,7 @@ public class ChallengeNameThatSound extends ChallengeSeperateRooms
}
}
Host.CreatureAllowOverride.SetOption(false);
Host.CreatureAllowOverride.setOption(false);
}
@EventHandler

View File

@ -52,7 +52,7 @@ public class ChallengeShootChickens extends Challenge
arrow.remove();
}
Host.DamagePvE.SetOption(false);
Host.DamagePvE.setOption(false);
}
@EventHandler
@ -140,9 +140,9 @@ public class ChallengeShootChickens extends Challenge
{
Location loc = getCenter().clone().add(UtilMath.r(20) - 10, 15, UtilMath.r(20) - 10);
Host.CreatureAllowOverride.SetOption(true);
Host.CreatureAllowOverride.setOption(true);
Chicken chicken = (Chicken) loc.getWorld().spawnEntity(loc, EntityType.CHICKEN);
Host.CreatureAllowOverride.SetOption(false);
Host.CreatureAllowOverride.setOption(false);
chicken.setMaxHealth(0.1);
chicken.setHealth(0.1);
@ -164,7 +164,7 @@ public class ChallengeShootChickens extends Challenge
_killedChickens.put(player.getName(), 0);
}
Host.DamagePvE.SetOption(true);
Host.DamagePvE.setOption(true);
}
@Override

View File

@ -42,7 +42,7 @@ public class ChallengeSkyFall extends Challenge
@Override
public void cleanupRoom()
{
Host.DamageEvP.SetOption(false);
Host.DamageEvP.setOption(false);
}
@EventHandler
@ -66,7 +66,7 @@ public class ChallengeSkyFall extends Challenge
{
setBorder(-50, 50, 0, 254, -50, 50);
Host.DamageEvP.SetOption(true);
Host.DamageEvP.setOption(true);
for (Player player : getChallengers())
{

View File

@ -29,7 +29,7 @@ public class ChallengeSmashOff extends Challenge
@Override
public void cleanupRoom()
{
Host.DamagePvP.SetOption(false);
Host.DamagePvP.setOption(false);
for (Player player : getChallengers())
{
@ -40,7 +40,7 @@ public class ChallengeSmashOff extends Challenge
@Override
public void setupPlayers()
{
Host.DamagePvP.SetOption(true);
Host.DamagePvP.setOption(true);
}
@Override

View File

@ -46,7 +46,7 @@ public class ChallengeTntLauncher extends Challenge
@Override
public void cleanupRoom()
{
Host.Damage.SetOption(true);
Host.Damage.setOption(true);
for (Entity tnt : _tnt)
{

View File

@ -62,7 +62,7 @@ public class ChallengeVolleyPig extends Challenge
public void cleanupRoom()
{
_pig.remove();
Host.DamagePvE.SetOption(false);
Host.DamagePvE.setOption(false);
}
@Override
@ -73,7 +73,7 @@ public class ChallengeVolleyPig extends Challenge
player.getInventory().setItem(0, new ItemBuilder(Material.STICK).addEnchantment(Enchantment.KNOCKBACK, 1).build());
}
Host.DamagePvE.SetOption(true);
Host.DamagePvE.setOption(true);
}
@EventHandler(priority = EventPriority.LOW)
@ -203,12 +203,12 @@ public class ChallengeVolleyPig extends Challenge
@Override
public void generateRoom()
{
Host.CreatureAllowOverride.SetOption(true);
Host.CreatureAllowOverride.setOption(true);
_pig = getCenter().getWorld().spawnEntity(getCenter().add(0, 1, 0), EntityType.PIG);
UtilEnt.Vegetate(_pig);
Host.CreatureAllowOverride.SetOption(false);
Host.CreatureAllowOverride.setOption(false);
for (int x = -6; x <= 6; x++)
{

View File

@ -27,10 +27,10 @@ public class Moba extends TeamGame
"..."
});
this.DeathOut.SetOption(false);
this.DeathSpectateSecs.SetOption(8);
this.DeathOut.setOption(false);
this.DeathSpectateSecs.setOption(8);
this.HungerSet.SetOption(20);
this.HungerSet.setOption(20);
registerChatStats();
}

View File

@ -155,13 +155,13 @@ public class Ball
if (_ballDeadTime > 0 && (_firstSpawn || UtilTime.elapsed(_ballDeadTime, 6000)))
{
//Spawn
_host.CreatureAllowOverride.SetOption(true);
_host.CreatureAllowOverride.setOption(true);
_ball = _ballSpawn.getWorld().spawn(_ballSpawn, Slime.class);
_ball.setSize(2);
UtilEnt.Vegetate(_ball);
UtilEnt.ghost(_ball, false, false);
_host.CreatureAllowOverride.SetOption(false);
_host.CreatureAllowOverride.setOption(false);
_lastParticle = _ball.getLocation();

View File

@ -54,12 +54,12 @@ public class MonsterLeague extends TeamGame
"CHEESE IZ DELISH"
});
this.PrepareFreeze.SetOption(false);
this.DamagePvP.SetOption(false);
this.HungerSet.SetOption(20);
this.HealthSet.SetOption(20);
this.PrepareFreeze.setOption(false);
this.DamagePvP.setOption(false);
this.HungerSet.setOption(20);
this.HealthSet.setOption(20);
this.DeathOut.SetOption(false);
this.DeathOut.setOption(false);
this.TeamArmor = true;
this.TeamArmorHotbar = true;

View File

@ -513,7 +513,7 @@ public class Maze implements Listener
}
Location loc = UtilAlg.Random(validSpawns);
_host.CreatureAllowOverride.SetOption(true);
_host.CreatureAllowOverride.setOption(true);
Snowman ent = loc.getWorld().spawn(loc, Snowman.class);
DisguiseBase disguise = DisguiseFactory.createDisguise(ent, _host.getMonsterType());
@ -528,7 +528,7 @@ public class Maze implements Listener
((DisguiseMagmaCube) disguise).SetSize(3);
}
_host.CreatureAllowOverride.SetOption(false);
_host.CreatureAllowOverride.setOption(false);
UtilEnt.Vegetate(ent, true);
UtilEnt.ghost(ent, true, false);
@ -551,7 +551,7 @@ public class Maze implements Listener
while (spawned <= numToSpawn)
{
_host.CreatureAllowOverride.SetOption(true);
_host.CreatureAllowOverride.setOption(true);
Snowman ent = loc.getWorld().spawn(loc, Snowman.class);
DisguiseBase disguise = DisguiseFactory.createDisguise(ent, _host.getMonsterType());
@ -566,7 +566,7 @@ public class Maze implements Listener
((DisguiseMagmaCube) disguise).SetSize(3);
}
_host.CreatureAllowOverride.SetOption(false);
_host.CreatureAllowOverride.setOption(false);
UtilEnt.Vegetate(ent, true);
UtilEnt.ghost(ent, true, false);

View File

@ -81,16 +81,16 @@ public class MonsterMaze extends SoloGame
"Make it to a Safe Pad or be killed!"
});
DamagePvP.SetOption(false);
DamagePvE.SetOption(false);
DamagePvP.setOption(false);
DamagePvE.setOption(false);
DamageFall.SetOption(false);
DamageFall.setOption(false);
HungerSet.SetOption(20);
HungerSet.setOption(20);
PrepareFreeze.SetOption(false);
PrepareFreeze.setOption(false);
HungerSet.SetOption(20);
HungerSet.setOption(20);
CompassEnabled = false;

View File

@ -73,19 +73,19 @@ public class OldMineWare extends SoloGame
"Last player with lives wins!"
});
this.PrepareFreeze.SetOption(false);
this.PrepareFreeze.setOption(false);
this.DamagePvP.SetOption(false);
this.DamagePvP.setOption(false);
this.BlockPlace.SetOption(true);
this.BlockBreak.SetOption(true);
this.BlockPlace.setOption(true);
this.BlockBreak.setOption(true);
this.ItemDrop.SetOption(true);
this.ItemPickup.SetOption(true);
this.ItemDrop.setOption(true);
this.ItemPickup.setOption(true);
InventoryOpenBlock.SetOption(true);
InventoryOpenChest.SetOption(true);
InventoryClick.SetOption(true);
InventoryOpenBlock.setOption(true);
InventoryOpenChest.setOption(true);
InventoryClick.setOption(true);
PopulateOrders();
@ -299,14 +299,14 @@ public class OldMineWare extends SoloGame
Location loc = _mobLocs.get(UtilMath.r(_mobLocs.size())).clone().add(new Vector(0.5,1,0.5));
double r = Math.random();
this.CreatureAllowOverride.SetOption(true);
this.CreatureAllowOverride.setOption(true);
if (r > 0.75) _mobs.add(loc.getWorld().spawn(loc, Pig.class));
else if (r > 0.5) _mobs.add(loc.getWorld().spawn(loc, Cow.class));
else if (r > 0.25) _mobs.add(loc.getWorld().spawn(loc, Chicken.class));
else _mobs.add(loc.getWorld().spawn(loc, Sheep.class));
this.CreatureAllowOverride.SetOption(false);
this.CreatureAllowOverride.setOption(false);
}
if (_ghast == null || !_ghast.isValid())
@ -314,9 +314,9 @@ public class OldMineWare extends SoloGame
if (_ghast != null)
_ghast.remove();
this.CreatureAllowOverride.SetOption(true);
this.CreatureAllowOverride.setOption(true);
_ghast = _ghastLoc.getWorld().spawn(_ghastLoc, Ghast.class);
this.CreatureAllowOverride.SetOption(false);
this.CreatureAllowOverride.setOption(false);
_ghast.setMaxHealth(10000);
_ghast.setHealth(_ghast.getMaxHealth());

View File

@ -48,10 +48,10 @@ public abstract class Order implements Listener
public void EndOrder()
{
Host.BlockBreakAllow.GetOption().clear();
Host.BlockPlaceAllow.GetOption().clear();
Host.ItemDropAllow.GetOption().clear();
Host.ItemPickupAllow.GetOption().clear();
Host.BlockBreakAllow.getOption().clear();
Host.BlockPlaceAllow.getOption().clear();
Host.ItemDropAllow.getOption().clear();
Host.ItemPickupAllow.getOption().clear();
Uninitialize();
}

View File

@ -32,8 +32,8 @@ public abstract class OrderGather extends Order
public void SubInitialize()
{
_counter.clear();
Host.BlockBreakAllow.GetOption().add(_id);
Host.ItemPickupAllow.GetOption().add(_id);
Host.BlockBreakAllow.getOption().add(_id);
Host.ItemPickupAllow.getOption().add(_id);
}
@Override

View File

@ -30,7 +30,7 @@ public abstract class OrderPlace extends Order
public void SubInitialize()
{
_counter.clear();
Host.BlockPlaceAllow.GetOption().add(_id);
Host.BlockPlaceAllow.getOption().add(_id);
}
@Override

View File

@ -100,11 +100,11 @@ public class Paintball extends TeamGame
"Last team alive wins!"
});
StrictAntiHack.SetOption(true);
StrictAntiHack.setOption(true);
HungerSet.SetOption(20);
HungerSet.setOption(20);
InventoryClick.SetOption(false);
InventoryClick.setOption(false);
TeamArmorHotbar = true;

View File

@ -39,9 +39,9 @@ public class PlayerCopyPaintball
Location entLoc = owner.getLocation();
entLoc.setPitch(0F);
Host.CreatureAllowOverride.SetOption(true);
Host.CreatureAllowOverride.setOption(true);
_ent = owner.getWorld().spawn(owner.getLocation(), ArmorStand.class);
Host.CreatureAllowOverride.SetOption(false);
Host.CreatureAllowOverride.setOption(false);
UtilEnt.ghost(_ent, true, false);

View File

@ -72,17 +72,17 @@ public class Quiver extends SoloGame
"First player to 20 kills wins."
});
this.HungerSet.SetOption(20);
this.DeathOut.SetOption(false);
this.DamageSelf.SetOption(false);
this.DamageTeamSelf.SetOption(true);
this.PrepareFreeze.SetOption(false);
this.BlockBreakAllow.GetOption().add(102);
this.BlockBreakAllow.GetOption().add(20);
this.BlockBreakAllow.GetOption().add(Material.STAINED_GLASS_PANE.getId());
this.BlockBreakAllow.GetOption().add(Material.STAINED_GLASS.getId());
this.HungerSet.setOption(20);
this.DeathOut.setOption(false);
this.DamageSelf.setOption(false);
this.DamageTeamSelf.setOption(true);
this.PrepareFreeze.setOption(false);
this.BlockBreakAllow.getOption().add(102);
this.BlockBreakAllow.getOption().add(20);
this.BlockBreakAllow.getOption().add(Material.STAINED_GLASS_PANE.getId());
this.BlockBreakAllow.getOption().add(Material.STAINED_GLASS.getId());
this.DeathSpectateSecs.SetOption(1);
this.DeathSpectateSecs.setOption(1);
_scoreObj = Scoreboard.GetScoreboard().registerNewObjective("Kills", "dummy");
_scoreObj.setDisplaySlot(DisplaySlot.BELOW_NAME);

View File

@ -54,14 +54,14 @@ public class QuiverTeams extends TeamGame
"First team to 60 kills wins."
});
this.HungerSet.SetOption(20);
this.DeathOut.SetOption(false);
this.DamageSelf.SetOption(false);
this.DamageTeamSelf.SetOption(false);
this.PrepareFreeze.SetOption(false);
this.BlockBreakAllow.GetOption().add(102);
this.BlockBreakAllow.GetOption().add(20);
this.BlockBreakAllow.GetOption().add(18);
this.HungerSet.setOption(20);
this.DeathOut.setOption(false);
this.DamageSelf.setOption(false);
this.DamageTeamSelf.setOption(false);
this.PrepareFreeze.setOption(false);
this.BlockBreakAllow.getOption().add(102);
this.BlockBreakAllow.getOption().add(20);
this.BlockBreakAllow.getOption().add(18);
this.TeamArmor = true;
this.TeamArmorHotbar = true;

View File

@ -60,11 +60,11 @@ public class Runner extends SoloGame implements IThrown
"Last player alive wins!"
});
this.DamagePvP.SetOption(false);
this.HungerSet.SetOption(20);
this.WorldWaterDamage.SetOption(4);
this.DamagePvP.setOption(false);
this.HungerSet.setOption(20);
this.WorldWaterDamage.setOption(4);
this.PrepareFreeze.SetOption(false);
this.PrepareFreeze.setOption(false);
registerStatTrackers(new DistanceTraveledStatTracker(this, "MarathonRunner"));

View File

@ -62,14 +62,14 @@ public class SearchAndDestroy extends TeamGame
setKits(_kitManager.get_kits());
_evolve = new KitEvolve(manager.getPlugin(), this, _kitManager.getUpgradeKits());
InventoryClick.SetOption(true);
WorldTimeSet.SetOption(-1);
WorldBoundaryKill.SetOption(false);
HungerSet.SetOption(20);
AnnounceJoinQuit.SetOption(false);
DisableKillCommand.SetOption(false);
InventoryClick.setOption(true);
WorldTimeSet.setOption(-1);
WorldBoundaryKill.setOption(false);
HungerSet.setOption(20);
AnnounceJoinQuit.setOption(false);
DisableKillCommand.setOption(false);
AllowParticles = false;
DamageSelf.SetOption(false);
DamageSelf.setOption(false);
Manager.GetDamage().GetCombatManager().setUseWeaponName(AttackReason.DefaultWeaponName);
@ -194,7 +194,7 @@ public class SearchAndDestroy extends TeamGame
bomb.getBlockLocation().getWorld().playSound(bomb.getBlockLocation(), Sound.EXPLODE, 1000, 0);
bomb.getBlockLocation().getWorld().playEffect(bomb.getBomb().getLocation(), Effect.EXPLOSION_HUGE, 0);
bomb.removeBomb();
DeathMessages.SetOption(false);
DeathMessages.setOption(false);
for (Player player : this.GetPlayers(true))
{
GameTeam pTeam = GetTeam(player);
@ -208,7 +208,7 @@ public class SearchAndDestroy extends TeamGame
}
}
}
DeathMessages.SetOption(true);
DeathMessages.setOption(true);
// TODO The code below could be used when a team is defeated.
/* if (getBombs().size() == 1)

View File

@ -107,9 +107,9 @@ class TeamBomb implements Comparable<TeamBomb>
_bombEntity.remove();
loc = _bombEntity.getLocation();
}
_game.CreatureAllowOverride.SetOption(true);
_game.CreatureAllowOverride.setOption(true);
EntityTNTPrimed entity = new EntityTNTPrimed(((CraftWorld) getBlockLocation().getWorld()).getHandle());
_game.CreatureAllowOverride.SetOption(false);
_game.CreatureAllowOverride.setOption(false);
double x = loc.getX();
double y = loc.getY() + 0.2;
double z = loc.getZ();

View File

@ -141,12 +141,12 @@ public class SheepGame extends TeamGame
"Most sheep at 5 minutes wins!"
});
this.DeathOut.SetOption(false);
this.DeathSpectateSecs.SetOption(6);
this.DeathOut.setOption(false);
this.DeathSpectateSecs.setOption(6);
this.HungerSet.SetOption(20);
this.HungerSet.setOption(20);
this.WorldTimeSet.SetOption(2000);
this.WorldTimeSet.setOption(2000);
this.TeamArmor = true;
this.TeamArmorHotbar = true;
@ -225,12 +225,12 @@ public class SheepGame extends TeamGame
public void SheepSpawn()
{
//Spawn Sheep
this.CreatureAllowOverride.SetOption(true);
this.CreatureAllowOverride.setOption(true);
Sheep sheep = _sheepSpawns.get(0).getWorld().spawn(UtilAlg.Random(_sheepSpawns), Sheep.class);
sheep.setAdult();
sheep.setMaxHealth(2048);
sheep.setHealth(2048);
this.CreatureAllowOverride.SetOption(false);
this.CreatureAllowOverride.setOption(false);
_sheep.put(sheep, new SheepData(this, sheep));

View File

@ -145,46 +145,46 @@ public abstract class Skywars extends Game
}, description);
PrepareFreeze.SetOption(true);
PrepareFreeze.setOption(true);
AnnounceStay.SetOption(false);
AnnounceStay.setOption(false);
HideTeamSheep = true;
CompassEnabled = true;
StrictAntiHack.SetOption(true);
StrictAntiHack.setOption(true);
GameTimeout.SetOption(1500000L);
GameTimeout.setOption(1500000L);
DeathDropItems.SetOption(true);
DeathDropItems.setOption(true);
QuitDropItems.SetOption(true);
QuitDropItems.setOption(true);
WorldTimeSet.SetOption(0);
WorldBoundaryKill.SetOption(false);
WorldTimeSet.setOption(0);
WorldBoundaryKill.setOption(false);
DamageSelf.SetOption(true);
DamageTeamSelf.SetOption(true);
DamageEvP.SetOption(true);
Damage.SetOption(true);
DamageSelf.setOption(true);
DamageTeamSelf.setOption(true);
DamageEvP.setOption(true);
Damage.setOption(true);
DeathDropItems.SetOption(true);
DeathDropItems.setOption(true);
ItemDrop.SetOption(true);
ItemPickup.SetOption(true);
ItemDrop.setOption(true);
ItemPickup.setOption(true);
BlockBreak.SetOption(true);
BlockPlace.SetOption(true);
BlockBreak.setOption(true);
BlockPlace.setOption(true);
InventoryClick.SetOption(true);
InventoryOpenBlock.SetOption(true);
InventoryOpenChest.SetOption(true);
InventoryClick.setOption(true);
InventoryOpenBlock.setOption(true);
InventoryOpenChest.setOption(true);
PlaySoundGameStart = true;
PrepareTime = 10000L;
DontAllowOverfill.SetOption(true);
DontAllowOverfill.setOption(true);
_oreHider = new OreHider();
@ -265,14 +265,14 @@ public abstract class Skywars extends Game
for (Location loc : WorldData.GetDataLocs("RED"))
{
//Spawn
CreatureAllowOverride.SetOption(true);
CreatureAllowOverride.setOption(true);
Zombie zombie = (Zombie) loc.getWorld().spawn(loc, Zombie.class);
zombie.setRemoveWhenFarAway(false);
zombie.setCustomName(C.cDRed + "Zombie Guardian");
zombie.setCustomNameVisible(true);
zombie.setMaxHealth(15);
zombie.setHealth(15);
CreatureAllowOverride.SetOption(false);
CreatureAllowOverride.setOption(false);
// Armor - Make sure the player can't get it!
zombie.getEquipment().setHelmet(
@ -474,7 +474,7 @@ public abstract class Skywars extends Game
if (!UtilTime.elapsed(this.GetStateTime(), 5000))
return;
CreatureAllowOverride.SetOption(true);
CreatureAllowOverride.setOption(true);
for (Location loc : GetTeamList().get(0).GetSpawns())
{
Chicken chicken = loc.getWorld().spawn(loc.clone().add(0, 1, 0), Chicken.class);
@ -485,7 +485,7 @@ public abstract class Skywars extends Game
chicken.setMaxHealth(4);
chicken.setHealth(4);
}
CreatureAllowOverride.SetOption(false);
CreatureAllowOverride.setOption(false);
_lastChicken = System.currentTimeMillis();
}

View File

@ -34,7 +34,7 @@ public class SoloSkywars extends Skywars
"Last player alive wins!"
});
this.DamageTeamSelf.SetOption(true);
this.DamageTeamSelf.setOption(true);
}

View File

@ -46,13 +46,13 @@ public class TeamSkywars extends Skywars
"Last team alive wins!"
});
this.FillTeamsInOrderToCount.SetOption(2);
this.FillTeamsInOrderToCount.setOption(2);
this.SpawnNearAllies.SetOption(true);
this.SpawnNearAllies.setOption(true);
this.DamageTeamSelf.SetOption(false);
this.DamageTeamSelf.setOption(false);
this.DontAllowOverfill.SetOption(true);
this.DontAllowOverfill.setOption(true);
}
@EventHandler

View File

@ -32,7 +32,7 @@ public class SoloSuperSmash extends SuperSmash
"Last player alive wins!"
});
this.DamageTeamSelf.SetOption(true);
this.DamageTeamSelf.setOption(true);
registerChatStats(
Kills,

View File

@ -116,13 +116,13 @@ public abstract class SuperSmash extends Game
},description);
this.DeathOut.SetOption(false);
this.DeathOut.setOption(false);
this.CompassEnabled = true;
this.DeathSpectateSecs.SetOption(4);
this.DeathSpectateSecs.setOption(4);
this.WorldWaterDamage.SetOption(1000);
this.WorldWaterDamage.setOption(1000);
this.HideTeamSheep = true;
@ -241,9 +241,9 @@ public abstract class SuperSmash extends Game
}
else
{
CreatureAllowOverride.SetOption(true);
CreatureAllowOverride.setOption(true);
_powerup = _powerupTarget.getWorld().spawn(_powerupTarget, EnderCrystal.class);
CreatureAllowOverride.SetOption(false);
CreatureAllowOverride.setOption(false);
_powerupTarget.getBlock().getRelative(BlockFace.DOWN).setType(Material.GLASS);

View File

@ -46,14 +46,14 @@ public class TeamSuperSmash extends SuperSmash
});
this.PlayersPerTeam = 2;
this.FillTeamsInOrderToCount.SetOption(2);
this.FillTeamsInOrderToCount.setOption(2);
this.SpawnNearAllies.SetOption(true);
this.DamageTeamSelf.SetOption(false);
this.SpawnNearAllies.setOption(true);
this.DamageTeamSelf.setOption(false);
this.TeamArmorHotbar = true;
this.DontAllowOverfill.SetOption(true);
this.DontAllowOverfill.setOption(true);
registerChatStats(
Kills,

View File

@ -116,9 +116,9 @@ public class KitKnight extends SmashKit
Manager.GetDisguise().disguise(disguise);
//Horse
Manager.GetGame().CreatureAllowOverride.SetOption(true);
Manager.GetGame().CreatureAllowOverride.setOption(true);
final Horse horse = player.getWorld().spawn(player.getLocation(), Horse.class);
Manager.GetGame().CreatureAllowOverride.SetOption(false);
Manager.GetGame().CreatureAllowOverride.setOption(false);
//Owner
horse.setTamed(true);

View File

@ -132,7 +132,7 @@ public class KitSkySquid extends SmashKit
@Override
public void activateSuperCustom(Player player)
{
Manager.GetGame().WorldWeatherEnabled.SetOption(true);
Manager.GetGame().WorldWeatherEnabled.setOption(true);
Manager.GetGame().WorldData.World.setStorm(true);
Manager.GetGame().WorldData.World.setThundering(true);
Manager.GetGame().WorldData.World.setThunderDuration(9999);
@ -141,6 +141,6 @@ public class KitSkySquid extends SmashKit
@Override
public void deactivateSuperCustom(Player player)
{
Manager.GetGame().WorldWeatherEnabled.SetOption(false);
Manager.GetGame().WorldWeatherEnabled.setOption(false);
}
}

View File

@ -86,10 +86,10 @@ public class PerkCowAngryHerd extends SmashPerk
loc.add(dir);
loc.add(UtilAlg.getLeft(dir).multiply(i*1.5));
Manager.GetGame().CreatureAllowOverride.SetOption(true);
Manager.GetGame().CreatureAllowOverride.setOption(true);
Class<? extends Cow> clazz = isSuperActive(player) ? MushroomCow.class : Cow.class;
Cow cow = player.getWorld().spawn(loc, clazz);
Manager.GetGame().CreatureAllowOverride.SetOption(false);
Manager.GetGame().CreatureAllowOverride.setOption(false);
_active.add(new DataCowCharge(player, cow));
}

View File

@ -147,9 +147,9 @@ public class Snake extends SoloGame
"Last one alive wins!"
});
this.DamageTeamSelf.SetOption(true);
this.DamageTeamSelf.setOption(true);
this.HungerSet.SetOption(2);
this.HungerSet.setOption(2);
this.GemMultiplier = 0.5;
@ -177,9 +177,9 @@ public class Snake extends SoloGame
Player player = GetPlayers(true).get(i);
_color.put(player, DyeColor.getByDyeData((byte) (i % 16)));
this.CreatureAllowOverride.SetOption(true);
this.CreatureAllowOverride.setOption(true);
Sheep sheep = player.getWorld().spawn(player.getLocation(), Sheep.class);
this.CreatureAllowOverride.SetOption(false);
this.CreatureAllowOverride.setOption(false);
sheep.setColor(DyeColor.getByDyeData((byte) (i % 16)));
sheep.setPassenger(player);
@ -427,9 +427,9 @@ public class Snake extends SoloGame
return;
//Spawn
this.CreatureAllowOverride.SetOption(true);
this.CreatureAllowOverride.setOption(true);
Slime pig = loc.getWorld().spawn(loc, Slime.class);
this.CreatureAllowOverride.SetOption(false);
this.CreatureAllowOverride.setOption(false);
pig.setSize(2);
UtilEnt.Vegetate(pig);
@ -491,9 +491,9 @@ public class Snake extends SoloGame
loc.subtract(player.getLocation().getDirection().setY(0));
//Spawn
this.CreatureAllowOverride.SetOption(true);
this.CreatureAllowOverride.setOption(true);
Sheep tail = loc.getWorld().spawn(loc, Sheep.class);
this.CreatureAllowOverride.SetOption(false);
this.CreatureAllowOverride.setOption(false);
tail.setRemoveWhenFarAway(false);
tail.setColor(_color.get(player));

View File

@ -72,12 +72,12 @@ public class SneakyAssassins extends SoloGame
this._npcManager = new NpcManager(this, UtilMath.random);
this.StrictAntiHack.SetOption(true);
this.StrictAntiHack.setOption(true);
this.DamageTeamSelf.SetOption(true);
this.PrepareFreeze.SetOption(false);
this.DamageTeamSelf.setOption(true);
this.PrepareFreeze.setOption(false);
this.HungerSet.SetOption(20);
this.HungerSet.setOption(20);
this.CompassEnabled = true;
this.CompassGiveItem = false;

View File

@ -48,12 +48,12 @@ public class NpcManager implements Listener
{
Location spawn = getNpcSpawn();
getGame().CreatureAllowOverride.SetOption(true);
getGame().CreatureAllowOverride.setOption(true);
LivingEntity npc = (LivingEntity) spawn.getWorld().spawn(spawn, getDisguiseType().getEntityClass());
npc.setCanPickupItems(false);
npc.setRemoveWhenFarAway(false);
UtilEnt.Vegetate(npc);
getGame().CreatureAllowOverride.SetOption(false);
getGame().CreatureAllowOverride.setOption(false);
return npc;
}

View File

@ -103,9 +103,9 @@ public class PowerUpItem
UtilFirework.playFirework(itemLocation, effect);
_powerUpManager.getGame().CreatureAllowOverride.SetOption(true);
_powerUpManager.getGame().CreatureAllowOverride.setOption(true);
_npc = itemLocation.getWorld().spawn(itemLocation, Skeleton.class);
_powerUpManager.getGame().CreatureAllowOverride.SetOption(false);
_powerUpManager.getGame().CreatureAllowOverride.setOption(false);
UtilEnt.Vegetate(_npc);
UtilEnt.ghost(_npc, true, false);

Some files were not shown because too many files have changed in this diff Show More