Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 2 additions & 32 deletions paper-server/src/main/java/org/bukkit/craftbukkit/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.logging.Level;
import java.util.logging.Logger;
import joptsimple.OptionParser;
Expand Down Expand Up @@ -80,37 +79,6 @@ public static void main(String[] args) {
.ofType(Integer.class)
.describedAs("Server size");

this.acceptsAll(asList("d", "date-format"), "Format of the date to display in the console (for log entries)")
.withRequiredArg()
.ofType(SimpleDateFormat.class)
.describedAs("Log date format");

this.accepts("log-pattern", "Specifies the log filename pattern")
.withRequiredArg()
.ofType(String.class)
.defaultsTo("server.log")
.describedAs("Log filename");

this.accepts("log-limit", "Limits the maximum size of the log file (0 = unlimited)")
.withRequiredArg()
.ofType(Integer.class)
.defaultsTo(0)
.describedAs("Max log size");

this.accepts("log-count", "Specified how many log files to cycle through")
.withRequiredArg()
.ofType(Integer.class)
.defaultsTo(1)
.describedAs("Log count");

this.accepts("log-append", "Whether to append to the log file")
.withRequiredArg()
.ofType(Boolean.class)
.defaultsTo(true)
.describedAs("Log append");

this.accepts("log-strip-color", "Strips color codes from log file");

this.acceptsAll(asList("b", "bukkit-settings"), "File for bukkit settings")
.withRequiredArg()
.ofType(File.class)
Expand All @@ -137,6 +105,8 @@ public static void main(String[] args) {

this.accepts("demo", "Demo mode");

this.accepts("bonusChest", "Enable the bonus chest");

this.accepts("initSettings", "Only create configuration files and then exit"); // SPIGOT-5761: Add initSettings option

this.acceptsAll(asList("S", "spigot-settings"), "File for spigot settings")
Expand Down
Loading