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
|
||||
public String get(Context context) {
|
||||
Component resultComponent = AdventureHelper.customMiniMessage().deserialize(this.text, context.tagResolvers());
|
||||
return AdventureHelper.plainTextContent(resultComponent);
|
||||
Component resultComponent = AdventureHelper.miniMessage().deserialize(this.text, context.tagResolvers());
|
||||
return AdventureHelper.strictMiniMessage().serialize(resultComponent);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user