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

Use included Java classes instead of console commands #62

Merged
merged 1 commit into from
Dec 22, 2018

Conversation

Abwasserrohr
Copy link
Owner

This replaces a bad code practice, since execute console command "/title %player% actionbar {""text"":""text that should appear here""}" is not the direct way. The new way is the right way of how it should be done.

This replaces a bad code practice, since ```execute console command "/title %player% actionbar {""text"":""text that should appear here""}"``` is not the direct way. The new way is the right way of how it should be done.
@Abwasserrohr Abwasserrohr added the enhancement New feature or request label Dec 22, 2018
@Abwasserrohr
Copy link
Owner Author

Abwasserrohr commented Dec 22, 2018

Now, the following function can be used to create a actionbar for the player:

actionbar(player,"Hello!")

Simpler and faster than this old way:

execute console command "/title %player% actionbar {""text"":""Hello!""}"

Testing now. > Works. =)

@Abwasserrohr Abwasserrohr merged commit ca86f6c into master Dec 22, 2018
@Abwasserrohr Abwasserrohr deleted the Abwasserrohr-actionbar-1 branch December 22, 2018 15:44
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

Successfully merging this pull request may close these issues.

None yet

1 participant