mirror of
https://github.com/plexusorg/Plex.git
synced 2025-07-05 00:56:42 +00:00
add gson serializedname support for toml
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
package dev.plex.settings;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.Getter;
|
||||
|
||||
@ -18,5 +19,9 @@ public class ServerSettings
|
||||
private boolean colorizeMotd = false;
|
||||
private boolean debug = false;
|
||||
private final List<String> sample = Lists.newArrayList("example", "example");
|
||||
@SerializedName(value = "add-player-count")
|
||||
private int addPlayerCount = 0;
|
||||
@SerializedName(value = "plus-one-max-count")
|
||||
private boolean plusOneMaxPlayer = true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user