Skip to content
/ Heads Public

An nukkit plugin that allows you to have heads in the Minecraft: Bedrock Edition

Notifications You must be signed in to change notification settings

KCodeYT/Heads

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

banner

What is this?

This project is a plugin for the nukkit server software environment. This plugin adds player heads to the server.

How can I download this plugin?

You can find the downloads on the releases section of this github page. There you can find the LATEST jar file of this plugin.

How do I give myself a head?

1. Open the chat in your client.
2. Ensure you have the operator status on the server or have the permission "heads.command.head", 
   otherwise you will not be able to use this command.
3. Type /head followed by the name of the skull owner.
   (This can be any player which has joined the server once
    or a java editiopn player)
4. You will see a head appear in your inventory if the player was found.
   If the player was not found, you will see a message in the chat.

Developer API

import cn.nukkit.Player;
import de.kcodeyt.heads.api.HeadAPI;

public class YourPlugin {

    public static void giveHeadByName(Player player, String name) {
        HeadAPI.giveHead(player, name).whenComplete((result, error) -> {
            if(result == null || error != null) {
                // something went wrong
                return;
            }

            if(!result.isSuccess()) {
                // use result.getCause() to find out why the head was not given
                return;
            }

            // head was given.
        });
    }

}

About

An nukkit plugin that allows you to have heads in the Minecraft: Bedrock Edition

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages