Added online indicators for party info
This commit is contained in:
@@ -5,6 +5,7 @@ import com.google.common.base.Throwables;
|
||||
import com.google.common.collect.Lists;
|
||||
import io.leangen.geantyref.TypeToken;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.minimessage.MiniMessage;
|
||||
import org.spongepowered.configurate.ConfigurationNode;
|
||||
import org.spongepowered.configurate.serialize.SerializationException;
|
||||
import org.spongepowered.configurate.yaml.NodeStyle;
|
||||
@@ -290,7 +291,10 @@ public final class Config {
|
||||
Password: <dark_aqua><password></dark_aqua>
|
||||
Owner: <owner>
|
||||
Members: <members>""";
|
||||
public static Component ONLINE_PREFIX = null;
|
||||
public static Component OFFLINE_PREFIX = null;
|
||||
private static void party() {
|
||||
MiniMessage miniMessage = MiniMessage.miniMessage();
|
||||
PARTY_FORMAT = getString("party.format", PARTY_FORMAT);
|
||||
PARTY_SPY = getString("party.spy", PARTY_SPY);
|
||||
NO_PERMISSION = getString("party.messages.no-permission", NO_PERMISSION);
|
||||
@@ -321,6 +325,8 @@ public final class Config {
|
||||
DISBANDED_PARTY = getString("party.messages.disbanded-party", DISBANDED_PARTY);
|
||||
PARTY_INFO = getString("party.messages.party-info", PARTY_INFO);
|
||||
ALREADY_IN_THIS_PARTY = getString("party.messages.already-in-this-party", ALREADY_IN_THIS_PARTY);
|
||||
ONLINE_PREFIX = miniMessage.deserialize(getString("party.messages.online-prefix", "<green>■ </green>"));
|
||||
OFFLINE_PREFIX = miniMessage.deserialize(getString("party.messages.offline-prefix", "<red>■ </red>"));
|
||||
}
|
||||
|
||||
public static String PARTY_HELP_WRAPPER = "<gold>ChatParty help:\n<commands></gold>";
|
||||
|
||||
Reference in New Issue
Block a user