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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dGroup.getGameWorld().getLocLobby() == null) {
|
if (dGroup.getGameWorld().getLobbyLocation() == null) {
|
||||||
for (Player groupPlayer : dGroup.getPlayers()) {
|
for (Player groupPlayer : dGroup.getPlayers()) {
|
||||||
new DGamePlayer(groupPlayer, dGroup.getGameWorld());
|
new DGamePlayer(groupPlayer, dGroup.getGameWorld());
|
||||||
}
|
}
|
||||||
|
@ -295,7 +295,7 @@ public class Game {
|
|||||||
public void run() {
|
public void run() {
|
||||||
if (teleport) {
|
if (teleport) {
|
||||||
for (Player player : getPlayers()) {
|
for (Player player : getPlayers()) {
|
||||||
PlayerUtil.secureTeleport(player, world.getLocStart());
|
PlayerUtil.secureTeleport(player, world.getStartLocation());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -364,11 +364,11 @@ public class PlayerListener implements Listener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (editWorld.getLobby() == null) {
|
if (editWorld.getLobbyLocation() == null) {
|
||||||
event.setRespawnLocation(editWorld.getWorld().getSpawnLocation());
|
event.setRespawnLocation(editWorld.getWorld().getSpawnLocation());
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
event.setRespawnLocation(editWorld.getLobby());
|
event.setRespawnLocation(editWorld.getLobbyLocation());
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@ -383,11 +383,11 @@ public class PlayerListener implements Listener {
|
|||||||
Location respawn = dPlayer.getCheckpoint();
|
Location respawn = dPlayer.getCheckpoint();
|
||||||
|
|
||||||
if (respawn == null) {
|
if (respawn == null) {
|
||||||
respawn = dGroup.getGameWorld().getLocStart();
|
respawn = dGroup.getGameWorld().getStartLocation();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (respawn == null) {
|
if (respawn == null) {
|
||||||
respawn = dGroup.getGameWorld().getLocLobby();
|
respawn = dGroup.getGameWorld().getLobbyLocation();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (respawn == null) {
|
if (respawn == null) {
|
||||||
|
@ -114,7 +114,7 @@ public class DGamePlayer extends DGlobalPlayer {
|
|||||||
if (this.editing) {
|
if (this.editing) {
|
||||||
this.getPlayer().setGameMode(GameMode.CREATIVE);
|
this.getPlayer().setGameMode(GameMode.CREATIVE);
|
||||||
clearPlayerData();
|
clearPlayerData();
|
||||||
teleport = EditWorld.getByWorld(world).getLobby();
|
teleport = EditWorld.getByWorld(world).getLobbyLocation();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
WorldConfig worldConfig = GameWorld.getByWorld(world).getConfig();
|
WorldConfig worldConfig = GameWorld.getByWorld(world).getConfig();
|
||||||
@ -127,7 +127,7 @@ public class DGamePlayer extends DGlobalPlayer {
|
|||||||
}
|
}
|
||||||
initialLives = worldConfig.getInitialLives();
|
initialLives = worldConfig.getInitialLives();
|
||||||
lives = initialLives;
|
lives = initialLives;
|
||||||
teleport = GameWorld.getByWorld(world).getLocLobby();
|
teleport = GameWorld.getByWorld(world).getLobbyLocation();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (teleport == null) {
|
if (teleport == null) {
|
||||||
@ -621,11 +621,11 @@ public class DGamePlayer extends DGlobalPlayer {
|
|||||||
Location respawn = checkpoint;
|
Location respawn = checkpoint;
|
||||||
|
|
||||||
if (respawn == null) {
|
if (respawn == null) {
|
||||||
respawn = dGroup.getGameWorld().getLocStart();
|
respawn = dGroup.getGameWorld().getStartLocation();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (respawn == null) {
|
if (respawn == null) {
|
||||||
respawn = dGroup.getGameWorld().getLocLobby();
|
respawn = dGroup.getGameWorld().getLobbyLocation();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (respawn == null) {
|
if (respawn == null) {
|
||||||
@ -712,7 +712,7 @@ public class DGamePlayer extends DGlobalPlayer {
|
|||||||
for (Player player : dGroup.getPlayers()) {
|
for (Player player : dGroup.getPlayers()) {
|
||||||
DGamePlayer dPlayer = getByPlayer(player);
|
DGamePlayer dPlayer = getByPlayer(player);
|
||||||
dPlayer.setWorld(gameWorld.getWorld());
|
dPlayer.setWorld(gameWorld.getWorld());
|
||||||
dPlayer.setCheckpoint(dGroup.getGameWorld().getLocStart());
|
dPlayer.setCheckpoint(dGroup.getGameWorld().getStartLocation());
|
||||||
if (dPlayer.getWolf() != null) {
|
if (dPlayer.getWolf() != null) {
|
||||||
dPlayer.getWolf().teleport(dPlayer.getCheckpoint());
|
dPlayer.getWolf().teleport(dPlayer.getCheckpoint());
|
||||||
}
|
}
|
||||||
@ -860,10 +860,10 @@ public class DGamePlayer extends DGlobalPlayer {
|
|||||||
|
|
||||||
if (isEditing()) {
|
if (isEditing()) {
|
||||||
if (editWorld != null) {
|
if (editWorld != null) {
|
||||||
if (editWorld.getLobby() == null) {
|
if (editWorld.getLobbyLocation() == null) {
|
||||||
teleportLocation = editWorld.getWorld().getSpawnLocation();
|
teleportLocation = editWorld.getWorld().getSpawnLocation();
|
||||||
} else {
|
} else {
|
||||||
teleportLocation = editWorld.getLobby();
|
teleportLocation = editWorld.getLobbyLocation();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -873,11 +873,11 @@ public class DGamePlayer extends DGlobalPlayer {
|
|||||||
teleportLocation = getCheckpoint();
|
teleportLocation = getCheckpoint();
|
||||||
|
|
||||||
if (teleportLocation == null) {
|
if (teleportLocation == null) {
|
||||||
teleportLocation = dGroup.getGameWorld().getLocStart();
|
teleportLocation = dGroup.getGameWorld().getStartLocation();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (teleportLocation == null) {
|
if (teleportLocation == null) {
|
||||||
teleportLocation = dGroup.getGameWorld().getLocLobby();
|
teleportLocation = dGroup.getGameWorld().getLobbyLocation();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (teleportLocation == null) {
|
if (teleportLocation == null) {
|
||||||
|
@ -38,7 +38,7 @@ public class LobbySign extends DSign {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onInit() {
|
public void onInit() {
|
||||||
getGameWorld().setLocLobby(getSign().getLocation());
|
getGameWorld().setLobbyLocation(getSign().getLocation());
|
||||||
getSign().getBlock().setType(Material.AIR);
|
getSign().getBlock().setType(Material.AIR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ public class StartSign extends DSign {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onInit() {
|
public void onInit() {
|
||||||
getGameWorld().setLocStart(getSign().getLocation());
|
getGameWorld().setStartLocation(getSign().getLocation());
|
||||||
getSign().getBlock().setType(Material.AIR);
|
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;
|
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;
|
return locLobby;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param locLobby
|
* @param location
|
||||||
* the locLobby to set
|
* the location of the lobby to set
|
||||||
*/
|
*/
|
||||||
public void setLocLobby(Location locLobby) {
|
public void setLobbyLocation(Location location) {
|
||||||
this.locLobby = locLobby;
|
this.locLobby = location;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the locStart
|
* @return the start location
|
||||||
*/
|
*/
|
||||||
public Location getLocStart() {
|
public Location getStartLocation() {
|
||||||
return locStart;
|
return locStart;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param locStart
|
* @param location
|
||||||
* the locStart to set
|
* the location to start to set
|
||||||
*/
|
*/
|
||||||
public void setLocStart(Location locStart) {
|
public void setStartLocation(Location location) {
|
||||||
this.locStart = locStart;
|
this.locStart = location;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user