3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 20:40:08 +01:00

Adds a method that returns the File representation of the update folder. Thanks raphfrk

Dieser Commit ist enthalten in:
Dinnerbone 2011-09-25 02:22:06 +01:00
Ursprung 3c7a843944
Commit cb49379b24

Datei anzeigen

@ -319,6 +319,10 @@ public final class CraftServer implements Server {
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() {
return this.configuration.getInt("settings.ping-packet-limit", 100);
}