Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
Avatar for Bones

PronounDB, in Minecraft!

Report Pronouns?

Pronouns

PronounDB in Minecraft! Just a silly little API for PronounDB

Supports Paper (and it's forks), Sponge, Fabric, Velocity, BungeeCord and Minestom!

FAQ

Folia support? Sorry not yet, when the platform is more stable and is released to the public, only then will I support Folia. Coming soon :)

Forge support? No, I'd rather eat a shoe. Feel free to make a mod to use the API to add Forge support, I'm not interested in Forge.

NeoForge support? I haven't tried NeoForge out development wise and it's early in development, once it's more stable I will experiment and see if I wanna add it. I tried NeoForge, not happening due to issues with some toolchain stuff, just won't work :(

Quilt support? Likely works with the Fabric mod already but I'm not gonna test, someone feel free to DM me on Discord (novampr) and tell me if it works though.

API extensions? Soon™

Why not support Bukkit/Spigot? While I can, they are old. Let's face it, Paper is faster and you probably don't have reason to use it. However feel free to fork the project to add support for this.

You can use the PlaceholderAPI to get the normal or short version of your pronouns
Example:
%pronouns_get% = He/They/It
%pronouns_getshort% = He/They

You can also use the PronounsAPI class in your own plugin :)
Example (Bukkit):

public class MyPlugin extends JavaPlugin {
    @Override
    public void onEnable() {
        String personsPronouns = PronounsAPI.getInstance().getPronouns(null); //TODO: Put a functional UUID in, null won't work!
        getLogger().info(personsPronouns);
    }

    @Override
    public void onDisable() {
        // Plugin shutdown logic
    }
}

Example (Sponge):

@Plugin("myplugin")
public class MyPlugin {
    @Inject
    public Logger logger;

    @Listener
    public void onServerStart(final StartedEngineEvent<Server> event) {
        String personsPronouns = PronounsAPI.getInstance().getPronouns(null); //TODO: Put a functional UUID in, null won't work!
        logger.info(personsPronouns);
    }
}

Example (Fabric):

public class MyMod implements DedicatedServerModInitializer {
    @Override
    public void onInitializeServer() {
        String personsPronouns = PronounsAPI.getInstance().getPronouns(null); //TODO: Put a functional UUID in, null won't work!
        logger.info(personsPronouns);
    }
}

Example (Velocity):

@Plugin(id="myplugin")
public class MyPlugin {
    @Inject
    public Logger logger;

    @Subscribe
    public void onProxyInitialization(ProxyInitializeEvent event) {
        String personsPronouns = PronounsAPI.getInstance().getPronouns(null); //TODO: Put a functional UUID in, null won't work!
        logger.info(personsPronouns);
    }
}

Example (Bungee):

public class MyPlugin extends Plugin {
    @Override
    public void onEnable() {
        String personsPronouns = PronounsAPI.getInstance().getPronouns(null); //TODO: Put a functional UUID in, null won't work!
        getLogger().info(personsPronouns);
    }
}

Example (Minestom):

public class MyPlugin extends Extension {
    @Override
    public void initialize() {
        String personsPronouns = PronounsAPI.getInstance().getPronouns(null); //TODO: Put a functional UUID in, null won't work!
        getLogger().info(Component.text(personsPronouns));
    }
}

Information

CategoryDeveloper Tools
Published onMarch 9, 2024
LicenseCC0-1.0
Downloads11
Stars1
Watchers1

GitHub Links

Members

Avatar for Bones

Bones

Owner
Avatar for Novampr

Novampr

Admin