#902: Add Server#isLoggingIPs to get log-ips configuration

By: Doc <nachito94@msn.com>
This commit is contained in:
Bukkit/Spigot
2024-02-07 07:09:32 +11:00
parent 04d1d1e2b9
commit a8cebda10e
2 changed files with 16 additions and 0 deletions

View File

@@ -261,6 +261,15 @@ public final class Bukkit {
return server.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 @NotNull
public static List<String> getInitialEnabledPacks() { public static List<String> getInitialEnabledPacks() {
return server.getInitialEnabledPacks(); return server.getInitialEnabledPacks();

View File

@@ -216,6 +216,13 @@ public interface Server extends PluginMessageRecipient {
*/ */
public boolean getAllowNether(); 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. * Gets a list of packs to be enabled.
* *