Merge remote-tracking branch 'origin/master'

This commit is contained in:
2024-01-13 01:32:20 +08:00
7 changed files with 78 additions and 30 deletions

View File

@@ -148,6 +148,11 @@ public class DisplayMessage {
return copy;
}
@NotNull
public DisplayMessage replace(@NotNull String key, String value) {
return replace(TextReplacementConfig.builder().matchLiteral(key).replacement(value).build());
}
@NotNull
public JsonObject toJson() {
JsonObject object = new JsonObject();