Skip to content

Commit

Permalink
def base can now be everywhere not just 0 0
Browse files Browse the repository at this point in the history
  • Loading branch information
YuToutCourt committed Jul 12, 2022
1 parent df6a837 commit 02de7f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ private void tpTeam(){
int x,z;
for(Teams team : Teams.teams){
if(!team.getName().equals("Defenseur")){
x = negativeOrNot(rand.nextInt((int)this.main.WORLD.getWorldBorder().getSize() / 2));
z = negativeOrNot(rand.nextInt((int)this.main.WORLD.getWorldBorder().getSize() / 2));
x = negativeOrNot(rand.nextInt((int)this.main.WORLD.getWorldBorder().getSize() / 2)) + (int)this.main.WORLD.getSpawnLocation().getX();
z = negativeOrNot(rand.nextInt((int)this.main.WORLD.getWorldBorder().getSize() / 2)) + (int)this.main.WORLD.getSpawnLocation().getZ();
if (firstTeam){
coordUsed[index][0] = x;
coordUsed[index][1] = z;
Expand All @@ -111,8 +111,8 @@ private void tpTeam(){
}
else {
while (!checkProximity(x,z,coordUsed)){
x = negativeOrNot(rand.nextInt((int)this.main.WORLD.getWorldBorder().getSize() / 2));
z = negativeOrNot(rand.nextInt((int)this.main.WORLD.getWorldBorder().getSize() / 2));
x = negativeOrNot(rand.nextInt((int)this.main.WORLD.getWorldBorder().getSize() / 2)) + (int)this.main.WORLD.getSpawnLocation().getX();
z = negativeOrNot(rand.nextInt((int)this.main.WORLD.getWorldBorder().getSize() / 2)) + (int)this.main.WORLD.getSpawnLocation().getZ();
}
coordUsed[index][0] = x;
coordUsed[index][1] = z;
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Spawn: # Spawn coordinates ✔️
y: 250 # int y coordinate
z: 0 # int z coordinate

SpawnDef: # Spawn coordinates for the defenseur
SpawnDef: # Spawn coordinates for the defender
x: 0 # int x coordinate
z: 0 # int z coordinate

Expand All @@ -27,7 +27,7 @@ CutClean: true # Enable or not the Cut Clean scenario (autosmelting items) ✔
Teams: #✔️
TeamChat: true # Enable or not team chat
FriendlyFire : false # Enable or not the friendlyfire
Teams: # color,name,data - splitted by comma (The "Defenseur" team have to have this name = "Defenseur")
Teams: # color,name,data - splitted by comma (The "Defender" team have to have this name = "Defenseur")
- "GOLD,Orange,14"
- "YELLOW,Yellow,11"
- "DARK_GREEN,Dark Green,2"
Expand All @@ -40,7 +40,7 @@ Teams: #✔️
- "GRAY,Gray,8"

Invicibility: 30 # Invicibility time at the start of the game, in seconds ✔️
TimeBeforePvp: 3 # Time in days before PVP is enable (a day if 20 minutes) ✔️
TimeBeforePvp: 3 # Time in days before PVP is enable (a day, 20 minutes) ✔️

Border: #✔️
StartSize: 2000 # Initial size (width) of the border
Expand Down

0 comments on commit 02de7f1

Please sign in to comment.