geforkt von Mirrors/Paper
Update adventure and fix command perm serialization NPE (#6729)
Dieser Commit ist enthalten in:
Ursprung
5f9ed411df
Commit
31f57a86a6
@ -14,7 +14,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
withJavadocJar()
|
||||
}
|
||||
|
||||
+val adventureVersion = "4.9.1"
|
||||
+val adventureVersion = "4.9.2"
|
||||
+val apiAndDocs by configurations.creating {
|
||||
+ attributes {
|
||||
+ attribute(Category.CATEGORY_ATTRIBUTE, objects.named(Category.DOCUMENTATION))
|
||||
@ -1258,7 +1258,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ @Deprecated // Paper
|
||||
public String getPermissionMessage() {
|
||||
- return permissionMessage;
|
||||
+ return io.papermc.paper.text.PaperComponents.legacySectionSerializer().serialize(permissionMessage); // Paper
|
||||
+ return io.papermc.paper.text.PaperComponents.legacySectionSerializer().serializeOrNull(permissionMessage); // Paper
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1281,10 +1281,20 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
return this;
|
||||
}
|
||||
+ // Paper start
|
||||
+ /**
|
||||
+ * Gets the permission message.
|
||||
+ *
|
||||
+ * @return the permission message
|
||||
+ */
|
||||
+ public @Nullable net.kyori.adventure.text.Component permissionMessage() {
|
||||
+ return this.permissionMessage;
|
||||
+ }
|
||||
+
|
||||
+ /**
|
||||
+ * Sets the permission message.
|
||||
+ *
|
||||
+ * @param permissionMessage the permission message
|
||||
+ */
|
||||
+ public void permissionMessage(@Nullable net.kyori.adventure.text.Component permissionMessage) {
|
||||
+ this.permissionMessage = permissionMessage;
|
||||
+ }
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren