Skip to content

Commit

Permalink
Merge pull request #265 from tschlienger/patch-1
Browse files Browse the repository at this point in the history
Whitelist enabled check inverted
  • Loading branch information
DeathTrooperr authored Jan 17, 2024
2 parents a773e7e + 68e6ded commit 88b584e
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 88b584e

Please sign in to comment.