You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/com/alecgorge/minecraft/jsonapi/api/v2/EssentialsAPIMethods.java
+41-21
Original file line number
Diff line number
Diff line change
@@ -43,13 +43,14 @@ public String get_configuration_text() {
43
43
returnx.saveToString();
44
44
}
45
45
46
-
@API_Method(name = "essentials.config.get_value", argumentDescriptions = { "String path - path to the key" }, returnDescription = "Returns Object, path as key.key.key...")
46
+
@API_Method(name = "essentials.config.get_value", argumentDescriptions = { "Path to the key" }, returnDescription = "path as key.key.key...")
47
47
publicObjectget_configuration_value(Stringpath) {
48
48
FileConfigurationx = ess.getConfig();
49
49
returnx.get(path);
50
50
}
51
51
52
-
@API_Method(name = "essentials.config.set_value", argumentDescriptions = { "String path - path to config key, Object value - the value to set, Boolean should_reload - should the plugin be reloaded after changing the value" }, returnDescription = "Returns Object, path as key.key.key...")
52
+
53
+
@API_Method(name = "essentials.config.set_value", argumentDescriptions = { "Path to config key", "The value to set", "Should the plugin be reloaded after changing the value" }, returnDescription = "path as key.key.key...")
@@ -61,7 +62,8 @@ public boolean set_configuration_value(String path, Object value, boolean should
61
62
returntrue;
62
63
}
63
64
64
-
@API_Method(name = "essentials.config.restore_default", description = "Resets the configuration file to it's default", argumentDescriptions = { "Boolean should_reload - should the plugin be reloaded after the operation" }, returnDescription = "Boolean if success")
65
+
66
+
@API_Method(name = "essentials.config.restore_default", description = "Resets the configuration file to it's default", argumentDescriptions = { "Should the plugin be reloaded after the operation" }, returnDescription = "true on success")
@@ -71,7 +73,8 @@ public boolean restore_default(boolean should_reload) {
71
73
returntrue;
72
74
}
73
75
74
-
@API_Method(name = "essentials.users.get_uuid", description = "Returns the UUID of a player(has to be online)", argumentDescriptions = { "String name - user name" }, returnDescription = "returns Object")
76
+
77
+
@API_Method(name = "essentials.users.get_uuid", description = "Returns the UUID of a player(has to be online)", argumentDescriptions = { "Username" }, returnDescription = "on success")
@API_Method(name = "essentials.users.add_mail", description = "Adds a mail to users' mailbox", argumentDescriptions = { "String name - user name, String message - message" }, returnDescription = "Boolean true on success")
88
+
89
+
@API_Method(name = "essentials.users.add_mail", description = "Adds a mail to users' mailbox", argumentDescriptions = { "Username", "Contents of the message" }, returnDescription = "true on success")
@API_Method(name = "essentials.users.add_mail_all", description = "Adds a mail to all users", argumentDescriptions = { "String message - message" }, returnDescription = "Boolean true on success")
95
+
96
+
@API_Method(name = "essentials.users.add_mail_all", description = "Adds a mail to all users", argumentDescriptions = { "Contents of the message" }, returnDescription = "true on success")
92
97
publicbooleansend_mail_all(Stringmessage) {
93
98
for (Stringusername : ess.getUserMap().getAllUniqueUsers()) {
94
99
Useruser = ess.getUserMap().getUser(username);
@@ -99,7 +104,8 @@ public boolean send_mail_all(String message) {
99
104
returntrue;
100
105
}
101
106
102
-
@API_Method(name = "essentials.users.set_afk", description = "Change status of AFK of user", argumentDescriptions = { "Boolean - status to set" }, returnDescription = "Boolean true on success")
107
+
108
+
@API_Method(name = "essentials.users.set_afk", description = "Change status of AFK of user", argumentDescriptions = { "Status to set (true - AFK)" }, returnDescription = "true on success")
@API_Method(name = "essentials.users.get_base", description = "Change status of AFK of user", argumentDescriptions = { "Boolean - status to set" }, returnDescription = "Boolean true on success")
119
+
120
+
@API_Method(name = "essentials.users.get_base", description = "Change status of AFK of user", argumentDescriptions = { "Status to set" }, returnDescription = "true on success")
@API_Method(name = "essentials.users.tp_back", description = "Teleport player to last location", argumentDescriptions = { "String name - user name" }, returnDescription = "Boolean true on success")
125
+
126
+
@API_Method(name = "essentials.users.tp_back", description = "Teleport player to last location", argumentDescriptions = { "Username" }, returnDescription = "true on success")
@API_Method(name = "essentials.users.burn", description = "Set the player on fire.", argumentDescriptions = { "String name - user name, Integer - time" }, returnDescription = "Boolean true on success")
164
+
165
+
@API_Method(name = "essentials.users.burn", description = "Set the player on fire.", argumentDescriptions = { "Username", "Time" }, returnDescription = "true on success")
@API_Method(name = "essentials.users.get_pos", description = "Return location of player", argumentDescriptions = { "String name - user name" }, returnDescription = "Location of player on success")
190
+
191
+
@API_Method(name = "essentials.users.get_pos", description = "Return location of player", argumentDescriptions = { "Username" }, returnDescription = "Location of player on success")
@API_Method(name = "essentials.users.clear_nick", description = "Clear the nickanme of player", argumentDescriptions = { "String name - user name" }, returnDescription = "Boolean true on success")
249
+
250
+
@API_Method(name = "essentials.users.clear_nick", description = "Clear the nickanme of player", argumentDescriptions = { "Username" }, returnDescription = "true on success")
@API_Method(name = "essentials.users.clear_all_powertools", description = "Clear all powertools of player", argumentDescriptions = { "String name - user name" }, returnDescription = "Boolean true on success")
263
+
264
+
@API_Method(name = "essentials.users.clear_all_powertools", description = "Clear all powertools of player", argumentDescriptions = { "Username" }, returnDescription = "true on success")
@API_Method(name = "essentials.users.seen", description = "Return the last logout time of player.", argumentDescriptions = { "String name - user name" }, returnDescription = "Timestamp if offline, -1 if online")
276
+
277
+
@API_Method(name = "essentials.users.seen", description = "Return the last logout time of player.", argumentDescriptions = { "Username" }, returnDescription = "Timestamp if offline, -1 if online")
@API_Method(name = "essentials.users.player_get_all", description = "Return all informations about player", argumentDescriptions = { "String name - user login" }, returnDescription = "HashMap on success")
301
+
302
+
@API_Method(name = "essentials.users.player_get_all", description = "Return all informations about player", argumentDescriptions = { "Username" }, returnDescription = "on success")
0 commit comments