mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-21 20:27:24 +01:00
#902: Add Server#isLoggingIPs to get log-ips configuration
By: Doc <nachito94@msn.com>
This commit is contained in:
parent
04d1d1e2b9
commit
a8cebda10e
2 changed files with 16 additions and 0 deletions
paper-api/src/main/java/org/bukkit
|
@ -261,6 +261,15 @@ public final class Bukkit {
|
|||
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();
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue