We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Signals should be modified to be easily implemented into other components the library provides.
This includes scoreboards
val foo = signal("something") scoreboard(!"&cTest Signal") { +!"&fValue: &e${foo()}" } val fooArg by stringArgument() ("setFoo" / fooArg).runs<Player> { foo setTo fooArg() }
Additionally the RefreshBlock should be abstracted to be used in other components.
RefreshBlock
val ping by refresh { player.ping } scoreboard(!"&fYour ping") { +!"&fPing: &7${ping}" +!"&cThis line won't update since we don't change" }
The text was updated successfully, but these errors were encountered:
Dynamic scoreboard, part of #34
947289b
Syntax/structure not final.
By this I mean that the Signal class should not have a singular owner object, and should instead be available anywhere in the program.
Signal
owner
When used in a block that implements the SignalListener interface, we should then mark this as a dependency for this Signal instance.
SignalListener
We also will need a way to remove these dependencies when they are no longer required otherwise we'll have a memory leak 😱
Sorry, something went wrong.
No branches or pull requests
Signals should be modified to be easily implemented into other components the library provides.
This includes scoreboards
Additionally the
RefreshBlock
should be abstracted to be used in other components.The text was updated successfully, but these errors were encountered: