public enum PluginLoadOrder extends Enum<PluginLoadOrder>
Nukkit插件的加载顺序有两个:STARTUP
和 POSTWORLD。
The load order of a Nukkit plugin can be STARTUP
or POSTWORLD.
| Enum Constant and Description |
|---|
POSTWORLD
表示这个插件在第一个世界加载完成后开始加载。
Indicates that the plugin will be loaded after the first/default world was created. |
STARTUP
表示这个插件在服务器启动时就开始加载。
Indicates that the plugin will be loaded at startup. |
| Modifier and Type | Method and Description |
|---|---|
static PluginLoadOrder |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PluginLoadOrder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PluginLoadOrder STARTUP
PluginLoadOrderpublic static final PluginLoadOrder POSTWORLD
PluginLoadOrderpublic static PluginLoadOrder[] values()
for (PluginLoadOrder c : PluginLoadOrder.values()) System.out.println(c);
public static PluginLoadOrder valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2020. All rights reserved.