Fix some nullability things (#7275)

This commit is contained in:
Jake Potrebic
2022-06-02 21:42:00 -07:00
parent f65eead418
commit 5ba2f654eb
3 changed files with 30 additions and 16 deletions

View File

@@ -1783,13 +1783,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
}
+ // Paper start
@Override
+ @Override
+ public net.kyori.adventure.text.Component shutdownMessage() {
+ String msg = getShutdownMessage();
+ return msg != null ? net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer.legacySection().deserialize(msg) : null;
+ }
+ // Paper end
+ @Override
@Override
+ @Deprecated // Paper
public String getShutdownMessage() {
return this.configuration.getString("settings.shutdown-message");