public void onEnable() {
		PluginDescriptionFile pdf = getDescription();

		// Load configuration
		FileConfiguration config = this.getConfig();
		boolean configChanged = false;
		if (config.get("build.message") == null) {
			config.set("build.message", config.getString("message", "You don't have permission to build!"));
			config.set("message", null);
			
			configChanged = true;
		}
		if (config.get("build.messageCooldown") == null) {
			config.set("build.messageCooldown", 3);
			configChanged = true;
		}
		if (config.get("interaction.check") == null) {
			config.set("interaction.check", config.getBoolean("interactCheck", false));
			config.set("interactCheck", null);
			configChanged = true;
		}
		if (config.get("interaction.message") == null) {
			config.set("interaction.message", config.getString("interactMessage", "You don't have permission to interact with the world!"));
			config.set("interactMessage", null);
			configChanged = true;
		}
		if (config.get("interaction.messageCooldown") == null) {
			config.set("interaction.messageCooldown", 3);
			configChanged = true;
		}
		if (configChanged)
			this.saveConfig();
		
		// Register listeners
		PluginManager pluginManager = getServer().getPluginManager();

		String message = getConfigString("build.message");
		MessageSender messageSender = (message == null) ? null : new MessageSender(message, config.getInt("build.messageCooldown", 3));

		final BListener bl = new BListener(this, messageSender);
		pluginManager.registerEvents(bl, this);
		
		final EListener el = new EListener(this, messageSender);
		pluginManager.registerEvents(el, this);

		if (config.getBoolean("interaction.check", false)) {
			message = getConfigString("interaction.message");
			messageSender = (message == null) ? null : new MessageSender(message, config.getInt("interaction.messageCooldown", 3));

			final PListener pl = new PListener(this, messageSender);
			pluginManager.registerEvents(pl, this);

			log.info("[" + pdf.getName() + "] registered interaction listener");
		}

		log.info("[" + pdf.getName() + "] version " + pdf.getVersion() + " enabled.");
	}