Extended as JavaPlugin.