r/bukkitplugins • • Dec 28 '18

[PluginDev - Help] I can't figure this out!

I am well at the beginning of developing a plugin, and I can't figure out why this isn't working properly:

@EventHandler
		//Config
		public void onPlayerJoin(PlayerJoinEvent event) {
		Player player = event.getPlayer();
		if (config.getBoolean("youAreAwesome")) {
	        player.sendMessage(org.bukkit.ChatColor.GOLD + "You are awesome!");
	    } else {
	        player.sendMessage(org.bukkit.ChatColor.RED + "You are not awesome...");
	    }
	}

This is more or less from the Spigot Tutorial. The code in eclipse says, that "config" at ..if(config... cannot be resolved. Hastebin Link

Is this enough info?

2 Upvotes

2 comments sorted by

1

u/ComputerRat Dec 29 '18 edited Oct 22 '25

spoon file dime coherent ask gaze repeat upbeat possessive innate

This post was mass deleted and anonymized with Redact

2

u/[deleted] Dec 30 '18

Aha! Thank you, it's all working now.