getNamespace

fun getNamespace(instance: JavaPlugin): String

The plugin's asset namespace: its name lowercased with any character outside [a-z0-9._-] replaced by _. Used for the generated resource pack's asset paths and item-model ids, so it is safe to use in a org.bukkit.NamespacedKey / item_model reference (e.g. to auto-attach an item model to a stack).