Files
src
Code
4 90
src/main/java/com/kodari/windvelocity/WindVelocityPlugin.java
package com.kodari.windvelocity;
import org.bukkit.plugin.java.JavaPlugin;
public class WindVelocityPlugin extends JavaPlugin {
private double horizontalMultiplier;
private double verticalBoost;
private boolean selfShotOnly;
@Override
public void onEnable() {
saveDefaultConfig();
loadValues();
getServer().getPluginManager().registerEvents(new WindChargeListener(this), this);
getLogger().info("WindVelocity enabled.");
}
private void loadValues() {
horizontalMultiplier = getConfig().getDouble("horizontal-multiplier", 0.3);
verticalBoost = getConfig().getDouble("vertical-boost", 0.4);
selfShotOnly = getConfig().getBoolean("self-shot-only", true);
}
public double getHorizontalMultiplier() { return horizontalMultiplier; }
public double getVerticalBoost() { return verticalBoost; }
public boolean isSelfShotOnly() { return selfShotOnly; }
}