Skip to content

Commit

Permalink
ref!: rename shouldDropPing->hideStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
voidpointer0x00 committed May 5, 2024
1 parent aa35e54 commit 6fa02cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public final class WhitelistConfig {
@Comment("Whether to automatically kick players if their group was removed from the whitelist")
private boolean shouldKickRemovedGroups = true;

@Comment("Whether if the plugin should cancel server list ping event")
private boolean shouldDropPing = false;
@Comment("Whether if the plugin should hide server status in players server list")
private boolean hideStatus = false;

/**
* Turns on this whitelist and returns
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ public PingListener register(@NotNull final Plugin plugin) {
@EventHandler
private void dropForNonWhitelisted(@NotNull final PaperServerListPingEvent event) {
if (whitelistConfig.isEnabled())
event.setCancelled(whitelistConfig.shouldDropPing());
event.setCancelled(whitelistConfig.hideStatus());
}
}

0 comments on commit 6fa02cb

Please sign in to comment.