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

Refactor commands #14

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
Draft

Conversation

SmylerMC
Copy link
Contributor

@SmylerMC SmylerMC commented Oct 3, 2023

Refactor command code to better match Terra++, take better advantage of Terra--, the Bukkit API, and other general code cleanup.

Changes so far

  • Add tab completion to all commands
  • Make all commands usable from the console.
  • Allow passing a world to get the offsets from in /offset.
  • Allow teleporting players in different worlds with /tpll.
  • Allow passing a target to /where.
  • Use Terra-- to parse coordinates in /tpll, giving it the same capabilities as Terra++.

This PR is not ready, I'll un-draft it when it is.

Fix permission checks when sender is not the target.
Prepare to make it work with any entity.
Send messages asynchronously.
Code cleanup.
Remove unnecessary command name check.
Get the projection from the world generator.
Send a proper error message when out of projection bounds.
Do not use deprecated HoverEvent(Action, TextComponent) constructor.
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.

1 participant