From ccd7b289a15b6a6698db4fc39c6cf9922f600838 Mon Sep 17 00:00:00 2001 From: Shane Bee Date: Tue, 17 Dec 2024 19:57:34 -0800 Subject: [PATCH] Fix ExprTextOf error on Spigot (#7273) ExprTextOf - fix error when running on Spigot Co-authored-by: cheeezburga <47320303+cheeezburga@users.noreply.github.com> --- .../skriptlang/skript/bukkit/misc/expressions/ExprTextOf.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/skriptlang/skript/bukkit/misc/expressions/ExprTextOf.java b/src/main/java/org/skriptlang/skript/bukkit/misc/expressions/ExprTextOf.java index 1a502d098d5..7afd9bf0e4e 100644 --- a/src/main/java/org/skriptlang/skript/bukkit/misc/expressions/ExprTextOf.java +++ b/src/main/java/org/skriptlang/skript/bukkit/misc/expressions/ExprTextOf.java @@ -33,7 +33,8 @@ public class ExprTextOf extends SimplePropertyExpression { static { String types = ""; if (Skript.classExists("org.bukkit.entity.Display")) { - serializer = BungeeComponentSerializer.get(); + if (IS_RUNNING_PAPER) + serializer = BungeeComponentSerializer.get(); types += "displays"; } // This is because this expression is setup to support future types.