fix climb

# Conflicts:
#	src/main/java/gent/zeus/mc13dtl/events/catalog/ClimbEvent.java
This commit is contained in:
Xander 2024-09-23 10:28:36 +02:00
parent 559f7c5656
commit db0469dd57
No known key found for this signature in database
GPG key ID: 79979C7BA303E003
2 changed files with 4 additions and 4 deletions

View file

@ -17,7 +17,7 @@ public class EventRunner implements Runnable {
static List<Event> currentEvents = new ArrayList<>();
public static List<Integer> startTimes = List.of(3000, 13000, 6000, 5000, 14000, 100, 1000, 500, 10000, 5000, 13000, 13000, 5000);
private final List<Integer> dayScores = List.of(10, 20, 50, 100, 150, 250, 400, 600, 850, 1150, 1500, 2000, 3000);
private final List<Integer> dayScores = List.of(10, 20, 30, 50, 80, 130, 210, 340, 550, 890, 1440, 2000, 2500);
private long day;

View file

@ -33,11 +33,11 @@ public class ClimbEvent extends Event {
Player player = MC13DTL.board.getPlayers(team).getFirst();
Location location = new Location(Bukkit.getWorld("world"), ((int) player.getX()) + 0.5, -50, ((int) player.getZ()) + 0.5);
location.getBlock().setType(Material.AIR);
location.add(0, -1, 0).getBlock().setType(Material.AIR);
location.add(0, -1, 0).getBlock().setType(Material.STONE);
location.clone().add(0, -1, 0).getBlock().setType(Material.AIR);
location.clone().add(0, -2, 0).getBlock().setType(Material.STONE);
for (Player p : MC13DTL.board.getPlayers(team)) {
p.teleport(location.add(0, 2, 0));
p.teleport(location);
}
super.start();