Giter Club home page Giter Club logo

Comments (6)

Weasel-Beans avatar Weasel-Beans commented on June 30, 2024 1

I understand. To be clear, the reason I decided to use external messages for joining/quitting is for attempting a workaround that allows me to send notifications to other servers through Bungee. Actually using hopecommander with a bungeebroadcast plugin for those messages. Though this bug doesn't actually prevent that as long as I don't use the suffix placeholders, so just thought I'd mention it. Thanks.

from announcerplus.

jpenilla avatar jpenilla commented on June 30, 2024 1

As much as I would like to fix this, it's very much an edge case and fixing it simply would break other things which are more commonly done. There are of course much more complicated solutions to the one I'm thinking of that could be attempted, but that's more than I'm willing to do for an edge case involving legacy codes like this atm.

from announcerplus.

jpenilla avatar jpenilla commented on June 30, 2024

An option to "not convert" is probably a no-go for a variety of reasons (it doesn't align with the vision for the plugin, and also technical reasons).

The conversion from legacy should be lossless however. Do you have an example of a failed conversion that "doesn't work at all in Minecraft"? The conversion seems to work fine in my testing.

from announcerplus.

Weasel-Beans avatar Weasel-Beans commented on June 30, 2024

Join commands as they appear in the given join/quit file:
joincommands

What appears in-game:
joinmessageformat

The user's suffix in LuckPerms:
joinsuffix

What should appear when this placeholder is parsed in-game:
joinpapiparse

Now that I think about it, this may be more of a bug than anything as I'm not sure when you'd want it to convert a placeholder's contents like that. Perhaps it's simply converting the Minecraft codes into the new format but not processing them when it's done from a placeholder.

from announcerplus.

jpenilla avatar jpenilla commented on June 30, 2024

I think the best solution is for you to use the built-in join-messages/join-broadcasts config options instead of using a second plugin to broadcast messages through a command. Either that or use the /ap broadcast command. Both of these solutions require changing the text in the AP config files from legacy to MiniMessage, any legacy placeholders will be upgraded automatically.

Although there is an unintended side-effect happening there from parsing placeholders in commands, it's not something you would encounter with a more sane/standard/supported setup of using the in-built config options or commands instead of executing another plugin's command, and so it's probably not going to be fixed. Placeholder parsing in commands is needed for %player_name% placeholders for example, and we can't know which placeholders are needed for the command and which are meant to be parsed by the command we are executing. Given we can't remove placeholder parsing for commands as is, we also can't remove format conversion as this would break executing /ap broadcast with placeholders from config commands, which is higher priority to work than third party plugin commands.

from announcerplus.

jpenilla avatar jpenilla commented on June 30, 2024

I've opened a tracking issue for a potential long-term solution #113.

from announcerplus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.