Skip to content

Commit

Permalink
Fixed inverted value error
Browse files Browse the repository at this point in the history
Whitelist would be displayed as turned off when enabled
  • Loading branch information
tschlienger authored Jan 16, 2024
1 parent a773e7e commit 68e6ded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/servertap/api/v1/ServerApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ private Set<Whitelist> getWhitelist() {
}
)
public void whitelistGet(Context ctx) {
if (bukkitServer.hasWhitelist()) {
if (!bukkitServer.hasWhitelist()) {
// TODO: Handle Errors better
ctx.json("error: The server has whitelist disabled");
return;
Expand Down

0 comments on commit 68e6ded

Please sign in to comment.