mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-19 15:09:15 +00:00
优化text provider
This commit is contained in:
@@ -18,8 +18,8 @@ public class TagTextProvider implements TextProvider {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String get(Context context) {
|
public String get(Context context) {
|
||||||
Component resultComponent = AdventureHelper.customMiniMessage().deserialize(this.text, context.tagResolvers());
|
Component resultComponent = AdventureHelper.miniMessage().deserialize(this.text, context.tagResolvers());
|
||||||
return AdventureHelper.plainTextContent(resultComponent);
|
return AdventureHelper.strictMiniMessage().serialize(resultComponent);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user