Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Custom status message that not status-online.json nor status-offline.json #147

Open
cupang-afk opened this issue Jul 23, 2023 · 11 comments
Labels
enhancement New feature or request
Milestone

Comments

@cupang-afk
Copy link

Is your feature request related to a problem? Please describe.
_

Describe the solution you'd like
a custom messages.json that got refreshed every n times just like status-online.json and status-offline.json
this custom message can be setup through discord slash command like /status

Describe alternatives you've considered
_

Additional context

  • useful for leaderboard on discord
  • idk how to make the issue title (feel free to change that)
@cupang-afk cupang-afk added the enhancement New feature or request label Jul 23, 2023
@BlueTree242
Copy link
Member

Is your feature request related to a problem? Please describe. _

Describe the solution you'd like a custom messages.json that got refreshed every n times just like status-online.json and status-offline.json this custom message can be setup through discord slash command like /status

Describe alternatives you've considered _

Additional context

  • useful for leaderboard on discord
  • idk how to make the issue title (feel free to change that)

you mean multiple status messages basically? that was suggested before tho

@PhoenixCodingStuff
Copy link

This is a nice feature. However might have to keep discord rate limits in mind if this gets implemented.

@cupang-afk
Copy link
Author

you mean multiple status messages basically? that was suggested before tho

yes

I can't seem to find any issues related to the suggestion you mentioned
sorry if this is a duplicate

This is a nice feature. However might have to keep discord rate limits in mind if this gets implemented.

true, that is why i wrote
"refreshed every n times just like status-online.json and status-offline.json"
because we can set those update delay in status.yml

which mine was like this

# Events to update the status message on.
update_events:
  - 'org.bukkit.event.player.PlayerJoinEvent'
  - 'org.bukkit.event.player.PlayerQuitEvent'
# Delay to update the status message in seconds. Keep in mind discord has rate limits
update_delay: 300 # 5 minutes

@BlueTree242
Copy link
Member

why do you even need that?

@cupang-afk
Copy link
Author

why do you even need that?

for leaderboard ?

@BlueTree242
Copy link
Member

there is /leaderboard command if you mean leveling

@cupang-afk
Copy link
Author

cupang-afk commented Jul 24, 2023

there is /leaderboard command if you mean leveling

not that,
i mean the custom one that i set up with another plugin like ajleaderboards (using placeholderapi)

for example i can make discord embed message that show top 10 most death player
like that

and its not limited to leaderboard only
maybe someone can use it to show recent ban status something like that

and this message will get refreshed, so i can setup dedicated text-channel for that message

@BlueTree242
Copy link
Member

Did you manage to already make a message tho?

@cupang-afk
Copy link
Author

Did you manage to already make a message tho?

using status-online.json yeah, but its too much message to show in one embed message (and not the right place to show because im using #server-status channel for that)

example below are top 5 death leaderboard using status-online.json (cropped because i have long message)
as my comment above, status.yml has update_events, and for example in this top 5 death leaderboard i can use PlayerDeathEvent to trigger update for this leaderboard (its a bad idea because discord has rate limit)
that is why i also be able to set this leaderboard to be updated every 10 minutes or so using update_delay

image

using custom message.json however, i can set what to be embeded in this message,

for example i want to set top 5 death in #leaderboard channel and top 5 donator in #donator channel
and both message have their settings for update/refresh similar to status.yml

the custom message.json itself can have custom name for example custom-message-top5death.json or custom-message-top5donator.json with their own .yml config

i know this is somewhat hard to implement so take your time or just drop this feature requests :)

@BlueTree242
Copy link
Member

It's not hard to implement, it's just that i am busy, i will add that in the next next version (next in a few days)

@cupang-afk
Copy link
Author

It's not hard to implement, it's just that i am busy, i will add that in the next next version (next in a few days)

okay, i'll wait then

@BlueTree242 BlueTree242 added this to the 1.2.14 milestone Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants