Skip to content

Commit fb4a573

Browse files
committed
Rename placeholder key to response
1 parent 6179f2b commit fb4a573

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/pw/chew/jsonrestapi/RestServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public void run() {
124124
return;
125125
}
126126

127-
String response = PlaceholderAPI.setPlaceholders(Bukkit.getOfflinePlayer(UUID.randomUUID()), config.getString(key + "placeholder"));
127+
String response = PlaceholderAPI.setPlaceholders(Bukkit.getOfflinePlayer(UUID.randomUUID()), config.getString(key + "response"));
128128

129129
respondOk(printWriter, response);
130130
} else {

src/main/resources/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ routes:
3131
ping:
3232
# The placeholder to parse.
3333
# This runs the parse function on this string, so anything not in placeholders will render raw.
34-
placeholder: Pong!
34+
response: Pong!
3535
# The method type, described above.
3636
method: GET
3737
# Whether or not to use an auth key, default false for GET.

0 commit comments

Comments
 (0)