Implement stacking prefixes - closes #60
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
|
||||
package me.lucko.luckperms.sponge;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
import com.google.common.base.Splitter;
|
||||
@@ -45,7 +46,10 @@ import java.util.stream.Collectors;
|
||||
|
||||
@RequiredArgsConstructor
|
||||
public class SpongeConfig extends AbstractConfiguration {
|
||||
|
||||
@Getter
|
||||
private final LPSpongePlugin plugin;
|
||||
|
||||
private ConfigurationNode root;
|
||||
|
||||
@SuppressWarnings("ResultOfMethodCallIgnored")
|
||||
|
||||
@@ -84,6 +84,43 @@ group-weight {
|
||||
|
||||
|
||||
|
||||
# +------------------------------------------------------------------------+ #
|
||||
# | Meta Formatting & Stacking | #
|
||||
# +------------------------------------------------------------------------+ #
|
||||
|
||||
# Allows you to setup prefix/suffix stacking options.
|
||||
#
|
||||
# Available formats:
|
||||
# - highest
|
||||
# - lowest
|
||||
# - highest_own
|
||||
# - lowest_own
|
||||
# - highest_on_track_<track>
|
||||
# - lowest_on_track_<track>
|
||||
#
|
||||
# Each element is added in the order listed.
|
||||
meta-formatting {
|
||||
prefix {
|
||||
format = [
|
||||
"highest"
|
||||
]
|
||||
start-spacer=""
|
||||
middle-spacer=" "
|
||||
end-spacer=""
|
||||
}
|
||||
suffix {
|
||||
format = [
|
||||
"highest"
|
||||
]
|
||||
start-spacer=""
|
||||
middle-spacer=" "
|
||||
end-spacer=""
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
# +------------------------------------------------------------------------+ #
|
||||
# | Storage | #
|
||||
# +------------------------------------------------------------------------+ #
|
||||
|
||||
Reference in New Issue
Block a user