Skip to content

MetaKey<T>

Namespace Mc.Scripting.Services · Kind class (sealed)

public sealed class MetaKey<T>

A typed key of player meta, declared by the plugin that owns the value (new MetaKey<int>("charter:level")). Only string, int, bool and TimeSpan are allowed: a value of another type is refused by the provider, so readers never parse text.

Member Description
MetaKey(string name) Creates a key.
public MetaKey(string name)

Creates a key. Throws for a value type other than string, int, bool or TimeSpan.

Parameters

Name Type Description
name string The key, namespaced by its owner (“charter:level”).
Member Description
string Name { get; } The key.
public string Name { get; }

The key.

Member Description
override string ToString()
public override string ToString()

Returns string