The main entry point for the FourKit plugin API.
More...
The main entry point for the FourKit plugin API.
◆ broadcastMessage()
| void Minecraft.Server.FourKit.FourKit.broadcastMessage |
( |
string | message | ) |
|
|
static |
Broadcasts a message to all online players.
- Parameters
-
| message | The message to broadcast. |
◆ createInventory() [1/4]
Creates a new Inventory.Inventory with the specified size. The inventory will be of type InventoryType.CHEST with the default title.
- Parameters
-
| size | The size of the inventory (must be a multiple of 9). |
- Returns
- A new Inventory.
◆ createInventory() [2/4]
| Inventory.Inventory Minecraft.Server.FourKit.FourKit.createInventory |
( |
int | size, |
|
|
string | title ) |
|
static |
Creates a new Inventory.Inventory with the specified size and custom title.
- Parameters
-
| size | The size of the inventory (must be a multiple of 9). |
| title | The title that will be shown to players. |
- Returns
- A new Inventory.
◆ createInventory() [3/4]
◆ createInventory() [4/4]
◆ disablePlugin()
| void Minecraft.Server.FourKit.FourKit.disablePlugin |
( |
ServerPlugin | plugin | ) |
|
|
static |
Disables the specified plugin.
- Parameters
-
◆ enablePlugin()
| void Minecraft.Server.FourKit.FourKit.enablePlugin |
( |
ServerPlugin | plugin | ) |
|
|
static |
Enables the specified plugin.
- Parameters
-
◆ getCommand()
| PluginCommand Minecraft.Server.FourKit.FourKit.getCommand |
( |
string | name | ) |
|
|
static |
Gets a PluginCommand with the given name, creating it if it does not already exist. The returned command can be configured with PluginCommand.setExecutor, Command.setDescription, etc.
- Parameters
-
- Returns
- The command for that name.
◆ getPlugin()
| ? ServerPlugin Minecraft.Server.FourKit.FourKit.getPlugin |
( |
string | name | ) |
|
|
static |
Checks if the given plugin is loaded and returns it when applicable.
Please note that the name of the plugin is case-sensitive.
- Parameters
-
| name | Name of the plugin to check. |
- Returns
- Plugin if it exists, otherwise null
◆ getPlugins()
| ServerPlugin[] Minecraft.Server.FourKit.FourKit.getPlugins |
( |
| ) |
|
|
static |
Gets a list of all currently loaded plugins.
- Returns
- The array of plugins.
◆ getWorld() [1/2]
| World Minecraft.Server.FourKit.FourKit.getWorld |
( |
int | dimId | ) |
|
|
static |
Gets a world by its dimension ID (0 = overworld, -1 = nether, 1 = the end).
- Parameters
-
- Returns
- The world for that dimension, creating it if necessary.
◆ getWorld() [2/2]
| ? World Minecraft.Server.FourKit.FourKit.getWorld |
( |
string | name | ) |
|
|
static |
Gets a world by its name. Supported names: "world" (overworld), "world_nether" (nether), "world_the_end" (the end).
- Parameters
-
| name | The name of the world to retrieve. |
- Returns
- The world with the given name, or null if none exists.
The documentation for this class was generated from the following file:
- Minecraft.Server.FourKit/FourKit.cs