Skip to content

Commit

Permalink
#902: Add Server#isLoggingIPs to get log-ips configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Doc94 authored and md-5 committed Feb 6, 2024
1 parent 08f86d1 commit b1c689b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/org/bukkit/Bukkit.java
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,15 @@ public static boolean getAllowNether() {
return server.getAllowNether();
}

/**
* Gets whether the server is logging the IP addresses of players.
*
* @return whether the server is logging the IP addresses of players
*/
public static boolean isLoggingIPs() {
return server.isLoggingIPs();
}

@NotNull
public static List<String> getInitialEnabledPacks() {
return server.getInitialEnabledPacks();
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/org/bukkit/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,13 @@ public interface Server extends PluginMessageRecipient {
*/
public boolean getAllowNether();

/**
* Gets whether the server is logging the IP addresses of players.
*
* @return whether the server is logging the IP addresses of players
*/
public boolean isLoggingIPs();

/**
* Gets a list of packs to be enabled.
*
Expand Down

0 comments on commit b1c689b

Please sign in to comment.