The First Plugin I have Made....

Off topicProgramming → The First Plugin I have Made....

Yeah.. Learning the BukkitAPI at the time. Iv’e made a simple plugin thanks to @Mr_RedSheep who helped me from the very start of this API The only thing it does is just a simple join message. Here’s the code :3

(All the default (Import, Package etc) Isn’t included lol)

Logger myPluginLogger = Bukkit.getLogger();
@Override
public void onEnable(){
	
myPluginLogger.info("LOL this is a plugin xD");
myPluginLogger.warning("Enabling plugin!");
org.bukkit.plugin.PluginManager pm = Bukkit.getPluginManager();
pm.registerEvents(this, this);

}
@Override
public void onDisable(){
	
myPluginLogger.info("Plugin is disabled");
myPluginLogger.severe("Dude your plugin is disabled");
}
@EventHandler
public void Join(PlayerJoinEvent e){
Bukkit.broadcastMessage(ChatColor.LIGHT_PURPLE + "" + ChatColor.BOLD +  "+ "  + ChatColor.GREEN + "" + ChatColor.BOLD + e.getPlayer().getName());


	
}

}
:33 @LogalCoder we did it like this just to make it easy to look over. We can maybe make it smaller in the future! :) Also there was a weird problem with the colours. Bukkit.broadcastMessage(ChatColor.LIGHT_PURPLE + ChatColor.BOLD + "+ “); This wouldn’t work, so I put a + “” + after each colour. Problem solved :).