This plugin is really simple. I saw how cute happy ghasts were, so I made a basic plugin that just cancels the entity damage event for happy ghasts.
In this spoiler is the source code for the happy ghast plugin. I tried looking on spigot for a plugin for my smp that would just protect happy ghasts and couldn't find anything, which is why I am uploading this resource.
Code (Java):
publicclass HappyGhastPlugin
extends JavaPlugin
implements Listener
{ @Override
publicvoid onEnable
(){ getLogger
().
info("Enabled happy ghast plugin. Happy ghasts will no longer take damage."); getServer
().
getPluginManager().
registerEvents(this,
this); }