mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-09 20:31:28 +01:00
Minor method naming changes
This commit is contained in:
parent
d5415955c5
commit
cac3e3de39
@ -163,7 +163,7 @@ public class PlayCommand extends BRCommand {
|
||||
return;
|
||||
}
|
||||
|
||||
if (dGroup.getGameWorld().getLocLobby() == null) {
|
||||
if (dGroup.getGameWorld().getLobbyLocation() == null) {
|
||||
for (Player groupPlayer : dGroup.getPlayers()) {
|
||||
new DGamePlayer(groupPlayer, dGroup.getGameWorld());
|
||||
}
|
||||
|
@ -295,7 +295,7 @@ public class Game {
|
||||
public void run() {
|
||||
if (teleport) {
|
||||
for (Player player : getPlayers()) {
|
||||
PlayerUtil.secureTeleport(player, world.getLocStart());
|
||||
PlayerUtil.secureTeleport(player, world.getStartLocation());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -364,11 +364,11 @@ public class PlayerListener implements Listener {
|
||||
return;
|
||||
}
|
||||
|
||||
if (editWorld.getLobby() == null) {
|
||||
if (editWorld.getLobbyLocation() == null) {
|
||||
event.setRespawnLocation(editWorld.getWorld().getSpawnLocation());
|
||||
|
||||
} else {
|
||||
event.setRespawnLocation(editWorld.getLobby());
|
||||
event.setRespawnLocation(editWorld.getLobbyLocation());
|
||||
}
|
||||
|
||||
} else {
|
||||
@ -383,11 +383,11 @@ public class PlayerListener implements Listener {
|
||||
Location respawn = dPlayer.getCheckpoint();
|
||||
|
||||
if (respawn == null) {
|
||||
respawn = dGroup.getGameWorld().getLocStart();
|
||||
respawn = dGroup.getGameWorld().getStartLocation();
|
||||
}
|
||||
|
||||
if (respawn == null) {
|
||||
respawn = dGroup.getGameWorld().getLocLobby();
|
||||
respawn = dGroup.getGameWorld().getLobbyLocation();
|
||||
}
|
||||
|
||||
if (respawn == null) {
|
||||
|
@ -114,7 +114,7 @@ public class DGamePlayer extends DGlobalPlayer {
|
||||
if (this.editing) {
|
||||
this.getPlayer().setGameMode(GameMode.CREATIVE);
|
||||
clearPlayerData();
|
||||
teleport = EditWorld.getByWorld(world).getLobby();
|
||||
teleport = EditWorld.getByWorld(world).getLobbyLocation();
|
||||
|
||||
} else {
|
||||
WorldConfig worldConfig = GameWorld.getByWorld(world).getConfig();
|
||||
@ -127,7 +127,7 @@ public class DGamePlayer extends DGlobalPlayer {
|
||||
}
|
||||
initialLives = worldConfig.getInitialLives();
|
||||
lives = initialLives;
|
||||
teleport = GameWorld.getByWorld(world).getLocLobby();
|
||||
teleport = GameWorld.getByWorld(world).getLobbyLocation();
|
||||
}
|
||||
|
||||
if (teleport == null) {
|
||||
@ -621,11 +621,11 @@ public class DGamePlayer extends DGlobalPlayer {
|
||||
Location respawn = checkpoint;
|
||||
|
||||
if (respawn == null) {
|
||||
respawn = dGroup.getGameWorld().getLocStart();
|
||||
respawn = dGroup.getGameWorld().getStartLocation();
|
||||
}
|
||||
|
||||
if (respawn == null) {
|
||||
respawn = dGroup.getGameWorld().getLocLobby();
|
||||
respawn = dGroup.getGameWorld().getLobbyLocation();
|
||||
}
|
||||
|
||||
if (respawn == null) {
|
||||
@ -712,7 +712,7 @@ public class DGamePlayer extends DGlobalPlayer {
|
||||
for (Player player : dGroup.getPlayers()) {
|
||||
DGamePlayer dPlayer = getByPlayer(player);
|
||||
dPlayer.setWorld(gameWorld.getWorld());
|
||||
dPlayer.setCheckpoint(dGroup.getGameWorld().getLocStart());
|
||||
dPlayer.setCheckpoint(dGroup.getGameWorld().getStartLocation());
|
||||
if (dPlayer.getWolf() != null) {
|
||||
dPlayer.getWolf().teleport(dPlayer.getCheckpoint());
|
||||
}
|
||||
@ -860,10 +860,10 @@ public class DGamePlayer extends DGlobalPlayer {
|
||||
|
||||
if (isEditing()) {
|
||||
if (editWorld != null) {
|
||||
if (editWorld.getLobby() == null) {
|
||||
if (editWorld.getLobbyLocation() == null) {
|
||||
teleportLocation = editWorld.getWorld().getSpawnLocation();
|
||||
} else {
|
||||
teleportLocation = editWorld.getLobby();
|
||||
teleportLocation = editWorld.getLobbyLocation();
|
||||
}
|
||||
}
|
||||
|
||||
@ -873,11 +873,11 @@ public class DGamePlayer extends DGlobalPlayer {
|
||||
teleportLocation = getCheckpoint();
|
||||
|
||||
if (teleportLocation == null) {
|
||||
teleportLocation = dGroup.getGameWorld().getLocStart();
|
||||
teleportLocation = dGroup.getGameWorld().getStartLocation();
|
||||
}
|
||||
|
||||
if (teleportLocation == null) {
|
||||
teleportLocation = dGroup.getGameWorld().getLocLobby();
|
||||
teleportLocation = dGroup.getGameWorld().getLobbyLocation();
|
||||
}
|
||||
|
||||
if (teleportLocation == null) {
|
||||
|
@ -38,7 +38,7 @@ public class LobbySign extends DSign {
|
||||
|
||||
@Override
|
||||
public void onInit() {
|
||||
getGameWorld().setLocLobby(getSign().getLocation());
|
||||
getGameWorld().setLobbyLocation(getSign().getLocation());
|
||||
getSign().getBlock().setType(Material.AIR);
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ public class StartSign extends DSign {
|
||||
|
||||
@Override
|
||||
public void onInit() {
|
||||
getGameWorld().setLocStart(getSign().getLocation());
|
||||
getGameWorld().setStartLocation(getSign().getLocation());
|
||||
getSign().getBlock().setType(Material.AIR);
|
||||
}
|
||||
|
||||
|
@ -158,9 +158,9 @@ public class EditWorld {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the lobby
|
||||
* @return the location of the lobby
|
||||
*/
|
||||
public Location getLobby() {
|
||||
public Location getLobbyLocation() {
|
||||
return lobby;
|
||||
}
|
||||
|
||||
|
@ -182,33 +182,33 @@ public class GameWorld {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the locLobby
|
||||
* @return the location of the lobby
|
||||
*/
|
||||
public Location getLocLobby() {
|
||||
public Location getLobbyLocation() {
|
||||
return locLobby;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param locLobby
|
||||
* the locLobby to set
|
||||
* @param location
|
||||
* the location of the lobby to set
|
||||
*/
|
||||
public void setLocLobby(Location locLobby) {
|
||||
this.locLobby = locLobby;
|
||||
public void setLobbyLocation(Location location) {
|
||||
this.locLobby = location;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the locStart
|
||||
* @return the start location
|
||||
*/
|
||||
public Location getLocStart() {
|
||||
public Location getStartLocation() {
|
||||
return locStart;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param locStart
|
||||
* the locStart to set
|
||||
* @param location
|
||||
* the location to start to set
|
||||
*/
|
||||
public void setLocStart(Location locStart) {
|
||||
this.locStart = locStart;
|
||||
public void setStartLocation(Location location) {
|
||||
this.locStart = location;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user