Improve BungeeCord support #388
Labels
enhancement
New feature or request
hacktoberfest
This year we’re celebrating 11 years of open source love! https://hacktoberfest.com/
platform
To me, the current BungeeCord module is quite simple and not as well-thought-out as some others modules.
I see some improvements we could make (it's annoying to create a lot of issues so we can discuss here and then split):
Outdated argument/contextual message approach
This module doesn't use modern
MessageKey
system and still uses legacy generic+constructor variant.No Adventure environment present
Maybe we can add something like
bukkit-adventure
which would accept aBungeeAudiences
instance? Adventure supports BungeeCord and we all (I hope) love MiniMessage, so this is something what default modern plugin would use. BungeeCord isn't really legacy thing by its own, it still can be used in many modern environments.No platform-specific arguments
To me, we need to add at least:
ProxiedPlayer
Nothing to say, just online player.
ServerInfo
Maybe also restrict it somehow, so players won't see servers they don't have access to in tab-complete? However, I would use such an argument only for admins.
Offline players
It's a kinda difficult but would look nicely - we don't have
OfflinePlayer
like in Bukkit but we can extract nicknames from some different source, like optionally hooking into LuckPerms. Also, it's important that such an argument must accept any input, maybe we can do a POJO like aOfflineProxiedPlayer(@Nullable ProxiedPlayer)
This can be a great and platform-independent API, actually. We could make something like...
...and then add a default implementation that would use something it can, for example, hook into the LuckPerms if it's installed or remember player names entered the network during this session. There are a lot to discuss.
I am ready to contribute for these features.
The text was updated successfully, but these errors were encountered: