Skip to content

are there any other methods BukkitPlayer and server? #78

@TheStepashich

Description

@TheStepashich

Hello! I'm trying to get the value from BukkitValues the player for whom we are parsing the placeholder...

in theory this is possible if use:

var player = BukkitPlayer;
var plugin = BukkitServer.getPluginManager().getPlugin("Welten");
var ratingKey = NamespacedKey(plugin, "rating");
function rating() {
    var playerData = player.persistentDataContainer;
	var rep = playerData.get(ratingKey, PersistentDataType.INTEGER);
    return rep;
}

rating();

error in line 3. can't determine Namespacedkey.

Any ideas on this? I will be grateful!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions