PluginInfoAttribute
Namespace Mc.Scripting · Kind class (sealed)
public sealed class PluginInfoAttribute : AttributeOptional metadata for a plugin type.
Examples
Section titled “Examples”Metadata
[PluginInfo("Homes", Version = "1.2.0", Author = "you", Description = "Set and teleport to homes")]public sealed class HomesPlugin : Plugin{ protected override void OnEnable() { /* ... */ }}Constructors
Section titled “Constructors”| Member | Description |
|---|---|
PluginInfoAttribute(string name) |
Optional metadata for a plugin type. |
Constructor
Section titled “Constructor”public PluginInfoAttribute(string name)Optional metadata for a plugin type.
Parameters
| Name | Type | Description |
|---|---|---|
name |
string |
Properties
Section titled “Properties”| Member | Description |
|---|---|
string? Author { get; init; } |
Author. |
string? Description { get; init; } |
Description. |
string Name { get; } |
Display name. |
string Version { get; init; } |
Version text. |
Author
Section titled “Author”public string? Author { get; init; }Author.
Description
Section titled “Description”public string? Description { get; init; }Description.
public string Name { get; }Display name.
Version
Section titled “Version”public string Version { get; init; }Version text.