Add configurable spawn height

This commit is contained in:
Sofiane H. Djerbi 2023-04-26 21:59:44 +03:00
commit ada248f722
3 changed files with 4 additions and 1 deletions

View file

@ -10,6 +10,7 @@ public class FoliaFlow extends JavaPlugin {
public static FoliaFlow instance;
public static double horizontalCoefficient;
public static double verticalCoefficient;
public static double spawnHeight;
@Override
public void onEnable() {
@ -23,6 +24,7 @@ public class FoliaFlow extends JavaPlugin {
reloadConfig();
horizontalCoefficient = getConfig().getDouble("horizontal_coefficient");
verticalCoefficient = getConfig().getDouble("vertical_coefficient");
spawnHeight = getConfig().getDouble("spawn_height");
}
private void register() {