Skip to content

Added more player utils#24

Merged
zNotChill merged 1 commit intoLuaRocket:mainfrom
miberss:player-methods
Mar 17, 2025
Merged

Added more player utils#24
zNotChill merged 1 commit intoLuaRocket:mainfrom
miberss:player-methods

Conversation

@miberss
Copy link
Contributor

@miberss miberss commented Mar 16, 2025

Added more messaging forms, like titles, actionbars and subtitles.
I also added setPlayerTime.

players.get("miberss").sendTitle("Hello!", { fadeIn = 5, stay = 10, fadeOut = 2 })

events.on("BlockBreakEvent",
    function(event)
        event.player.sendTitle("Hello!", { fadeIn = 50, stay = 1000, fadeOut = 2 })
        event.player.sendSubtitle("Hello!", { fadeIn = 50, stay = 100, fadeOut = 2 })
        event.player.sendActionBar("<color:#fff000>Hello!")
    end
)

Example code for the added utils :D

@miberss miberss requested a review from zNotChill as a code owner March 16, 2025 23:09
Copy link
Contributor

@zNotChill zNotChill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@zNotChill zNotChill merged commit 131780f into LuaRocket:main Mar 17, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants