fix: clear fall damage on teleport

This commit is contained in:
Simon Giesel 2020-06-01 20:30:22 +02:00
parent a2f8039e53
commit 2cf8756993
2 changed files with 5 additions and 4 deletions

View file

@ -18,13 +18,13 @@ public class GameTimeManager {
private static final int firstPlayTimeMinutes = 50;
private static final int firstPlayTimeLoginMinutes = 10;
private static final int protectionPeriodMinutes = 11;
// private static final LocalTime firstPlayStart = LocalTime.of(19, 20, 00);
private static final LocalTime firstPlayStart = LocalTime.now().plusMinutes(1);
private static final LocalTime firstPlayStart = LocalTime.of(19, 30, 00);
// private static final LocalTime firstPlayStart = LocalTime.now().plusMinutes(1);
private static final int firstRoundPreStartMinutes = 1;
private static final int playTimeMinutes = 30;
private static final int playTimeLoginMinutes = 5;
// private static final LocalTime playStart = LocalTime.of(19, 30, 00);
private static final LocalTime playStart = LocalTime.now().plusSeconds(10);
private static final LocalTime playStart = LocalTime.of(19, 30, 00);
// private static final LocalTime playStart = LocalTime.now().plusSeconds(10);
public GameTimeManager(final Varo plugin) {
this.plugin = plugin;

View file

@ -35,6 +35,7 @@ public class PlayerUtils {
}
p.teleport(new Location(w, 0, 0, 100));
p.setFallDistance(0);
p.setGameMode(GameMode.SPECTATOR);
p.setFlying(true);
p.setFlySpeed(0.0f);