Add ability to set spawns with yaw and pitch
This commit is contained in:
@@ -37,6 +37,7 @@ import org.bukkit.ChatColor;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
import org.bukkit.entity.Arrow;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
@@ -46,21 +47,28 @@ import org.bukkit.util.Vector;
|
||||
public class Setup {
|
||||
|
||||
public static void setupConfig() {
|
||||
Core.getMainClass().getConfig().addDefault("no-damage", false);
|
||||
Core.getMainClass().getConfig().addDefault("no-void-death", false);
|
||||
Core.getMainClass().getConfig().addDefault("no-change-blocks", false);
|
||||
Core.getMainClass().getConfig().addDefault("is-main-lobby", false);
|
||||
Core.getMainClass().getConfig().addDefault("no-hunger", false);
|
||||
Core.getMainClass().getConfig().addDefault("no-rain", false);
|
||||
Core.getMainClass().getConfig().addDefault("enable-leaves-decay", true);
|
||||
Core.getMainClass().getConfig().addDefault("server-name", "none");
|
||||
Core.getMainClass().getConfig().addDefault("allow-stairs-sit", false);
|
||||
Core.getMainClass().getConfig().addDefault("disable-mushroom-spread", false);
|
||||
Core.getMainClass().getConfig().addDefault("on-join-to-spawn", false);
|
||||
Core.getMainClass().getConfig().addDefault("golf", false);
|
||||
Core.getMainClass().getConfig().addDefault("realtime-day", false);
|
||||
Core.getMainClass().getConfig().options().copyDefaults(true);
|
||||
Core.getMainClass().getConfig().options().header("Config File of the Anura Core-Plugin:");
|
||||
FileConfiguration c = Core.getMainClass().getConfig();
|
||||
c.addDefault("no-damage", false);
|
||||
c.addDefault("no-void-death", false);
|
||||
c.addDefault("no-change-blocks", false);
|
||||
c.addDefault("is-main-lobby", false);
|
||||
c.addDefault("no-hunger", false);
|
||||
c.addDefault("no-rain", false);
|
||||
c.addDefault("enable-leaves-decay", true);
|
||||
c.addDefault("server-name", "none");
|
||||
c.addDefault("allow-stairs-sit", false);
|
||||
c.addDefault("disable-mushroom-spread", false);
|
||||
c.addDefault("on-join-to-spawn", false);
|
||||
c.addDefault("golf", false);
|
||||
c.addDefault("realtime-day", false);
|
||||
c.addDefault("spawn.world", "none");
|
||||
c.addDefault("spawn.X", 0);
|
||||
c.addDefault("spawn.Y", 0);
|
||||
c.addDefault("spawn.Z", 0);
|
||||
c.addDefault("spawn.yaw", 0d);
|
||||
c.addDefault("spawn.pitch", 0d);
|
||||
c.options().copyDefaults(true);
|
||||
c.options().header("Config File of the Anura Core-Plugin:");
|
||||
}
|
||||
|
||||
public static void setupEvents() {
|
||||
|
||||
Reference in New Issue
Block a user