fix: clear fall damage on teleport
This commit is contained in:
parent
a2f8039e53
commit
2cf8756993
2 changed files with 5 additions and 4 deletions
|
@ -18,13 +18,13 @@ public class GameTimeManager {
|
||||||
private static final int firstPlayTimeMinutes = 50;
|
private static final int firstPlayTimeMinutes = 50;
|
||||||
private static final int firstPlayTimeLoginMinutes = 10;
|
private static final int firstPlayTimeLoginMinutes = 10;
|
||||||
private static final int protectionPeriodMinutes = 11;
|
private static final int protectionPeriodMinutes = 11;
|
||||||
// private static final LocalTime firstPlayStart = LocalTime.of(19, 20, 00);
|
private static final LocalTime firstPlayStart = LocalTime.of(19, 30, 00);
|
||||||
private static final LocalTime firstPlayStart = LocalTime.now().plusMinutes(1);
|
// private static final LocalTime firstPlayStart = LocalTime.now().plusMinutes(1);
|
||||||
private static final int firstRoundPreStartMinutes = 1;
|
private static final int firstRoundPreStartMinutes = 1;
|
||||||
private static final int playTimeMinutes = 30;
|
private static final int playTimeMinutes = 30;
|
||||||
private static final int playTimeLoginMinutes = 5;
|
private static final int playTimeLoginMinutes = 5;
|
||||||
// private static final LocalTime playStart = LocalTime.of(19, 30, 00);
|
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.now().plusSeconds(10);
|
||||||
|
|
||||||
public GameTimeManager(final Varo plugin) {
|
public GameTimeManager(final Varo plugin) {
|
||||||
this.plugin = plugin;
|
this.plugin = plugin;
|
||||||
|
|
|
@ -35,6 +35,7 @@ public class PlayerUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
p.teleport(new Location(w, 0, 0, 100));
|
p.teleport(new Location(w, 0, 0, 100));
|
||||||
|
p.setFallDistance(0);
|
||||||
p.setGameMode(GameMode.SPECTATOR);
|
p.setGameMode(GameMode.SPECTATOR);
|
||||||
p.setFlying(true);
|
p.setFlying(true);
|
||||||
p.setFlySpeed(0.0f);
|
p.setFlySpeed(0.0f);
|
||||||
|
|
Loading…
Reference in a new issue