public class PluginYamlParser extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
PluginYamlParser.Command
プラグインのコマンド。
|
static class |
PluginYamlParser.DefaultPermission
デフォルトの権限。
|
static class |
PluginYamlParser.Load
読み込みタイミング。
|
static class |
PluginYamlParser.Permission
プラグインの権限。
|
Modifier and Type | Field and Description |
---|---|
String |
api_version
プラグインの使用するAPIバージョン。
1.12以下のプラグインの場合は確定nullです。
|
String |
author
プラグインの作成者。
|
String[] |
authors
プラグインの作成者(リスト)。
|
HashMap<String,PluginYamlParser.Command> |
commands
プラグインのコマンド一覧。
|
boolean |
databases
プラグインがデータベースを利用するか。
|
PluginYamlParser.Permission |
defaultPermission
プラグインのコマンドのデフォルト権限。
|
String[] |
depend
プラグインの依存先。
|
String |
description
プラグインの概要。
|
PluginYamlParser.Load |
load
プラグインの読み込みタイミング。
|
String[] |
loadbefore
後に起動すべきプラグイン。
|
String |
main
プラグインのメインクラス。
|
String |
name
プラグインの名前。
|
HashMap<String,PluginYamlParser.Permission> |
permissions
プラグインの権限一覧。
|
String |
prefix
プラグインのログ接頭辞。
|
String[] |
softdepend
先に起動すべきプラグイン。
|
String |
version
プラグインのバージョン。
|
String |
website
プラグインのウェブサイト。
|
Constructor and Description |
---|
PluginYamlParser() |
Modifier and Type | Method and Description |
---|---|
static PluginYamlParser |
fromJar(File file)
プラグインのJarファイル
|
static PluginYamlParser |
fromMap(Map<String,Object> map)
Mapから変換
|
static PluginYamlParser |
fromYaml(File yaml)
plugin.yml等の Yamlファイルから変換。
|
public String name
public String version
public String description
public String api_version
public PluginYamlParser.Load load
public String author
public String[] authors
public String website
public String main
public boolean databases
public String prefix
public String[] depend
public String[] softdepend
public String[] loadbefore
public HashMap<String,PluginYamlParser.Command> commands
public HashMap<String,PluginYamlParser.Permission> permissions
public PluginYamlParser.Permission defaultPermission
public static PluginYamlParser fromMap(Map<String,Object> map)
map
- マップpublic static PluginYamlParser fromYaml(File yaml) throws IOException
yaml
- YamlファイルIOException
- ファイルが見つからないpublic static PluginYamlParser fromJar(File file) throws IOException
file
- jarIOException
- ファイルが見つからないCopyright © 2021. All rights reserved.