mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-11 09:23:42 +01:00
Adds a method that returns the File representation of the update folder. Thanks raphfrk
This commit is contained in:
parent
3c7a843944
commit
cb49379b24
1 changed files with 4 additions and 0 deletions
|
@ -319,6 +319,10 @@ public final class CraftServer implements Server {
|
||||||
return this.configuration.getString("settings.update-folder", "update");
|
return this.configuration.getString("settings.update-folder", "update");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public File getUpdateFolderFile() {
|
||||||
|
return new File((File) console.options.valueOf("plugins"), this.configuration.getString("settings.update-folder", "update"));
|
||||||
|
}
|
||||||
|
|
||||||
public int getPingPacketLimit() {
|
public int getPingPacketLimit() {
|
||||||
return this.configuration.getInt("settings.ping-packet-limit", 100);
|
return this.configuration.getInt("settings.ping-packet-limit", 100);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue