@Override
	public void onEnable(){
		spawn = LocationParser.stringToLoc(PKSQLd.getUnparsedData("MAPSPAWN"));
		new Damage(this);
		new FireProjectile(this);
		new Interaction(this);
		new InventoryCancel(this);
		new MapElementInteractions(this);
		new PlayerSpawn(this);
		CommandManager.loadAllCommands();
		if(!ConfigMain.hasBeenLoaded()){
			ConfigMain.loaded();
			Broadcast.general("The server has just booted up.");
			Broadcast.general("Lobby will start in 30 seconds.");
			SchedulerManager.registerSingle(10, new Runnable(){
				public void run(){
					Broadcast.general("The server has just booted up.");
					Broadcast.general("Lobby will start in 20 seconds."); 
				}
			});
			SchedulerManager.registerSingle(20, new Runnable(){
				public void run(){ 
					Broadcast.general("The server has just booted up.");
					Broadcast.general("Lobby will start in 10 seconds."); 
				}
			}); startGameLoad(30);
		}else startGameLoad(5);
		for(Player p : Bukkit.getOnlinePlayers()){
			Bukkit.getPluginManager().callEvent(new PlayerJoinEvent(p, "has remained connected."));
		}RealmsMain.setServerMode(ServerMode.PREVOTE);
	}