creayun fix mabe mabe
This commit is contained in:
@@ -114,6 +114,7 @@ public class Configuration {
|
||||
@Getter public int port;
|
||||
@Getter public String username;
|
||||
@Getter public boolean kaboom = false;
|
||||
@Getter public boolean creayun = false;
|
||||
@Getter public String serverName;
|
||||
@Getter @Setter public boolean useCore = true;
|
||||
@Getter @Setter public boolean useChat = false;
|
||||
|
||||
@@ -29,7 +29,7 @@ public class CreayunChatParser implements ChatParser {
|
||||
public PlayerMessage parse (Component message) {
|
||||
final String stringified = ComponentUtilities.stringify(message);
|
||||
|
||||
if (stringified.length() > 512) return null; // will this fix the fard problem?
|
||||
if (bot.options().creayun()) return null;
|
||||
|
||||
final Matcher matcher = PATTERN.matcher(stringified);
|
||||
|
||||
|
||||
@@ -137,7 +137,7 @@ public class PlayersPlugin extends Bot.Listener {
|
||||
object.addProperty("uuid", target.profile().getIdAsString());
|
||||
object.add("lastSeen", new JsonObject());
|
||||
|
||||
playersObject.add(target.profile().getName(), object);
|
||||
playersObject.add(bot.options().creayun() ? target.profile().getName().replaceAll("§.", "") : target.profile().getName(), object);
|
||||
|
||||
PersistentDataUtilities.put("players", playersObject);
|
||||
} else for (Listener listener : listeners) { listener.playerUnVanished(target); }
|
||||
|
||||
Reference in New Issue
Block a user