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

feat: gamemode command #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

feat: gamemode command #18

wants to merge 2 commits into from

Conversation

Woeben
Copy link

@Woeben Woeben commented Jun 20, 2024

Fixes #17

This PR implements the following:

  • Gamemode command
  • Rank Command

@Woeben Woeben self-assigned this Jun 20, 2024
Copy link
Contributor

@MatzHilven MatzHilven left a comment

Choose a reason for hiding this comment

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

Comment on lines +21 to +22
var gamemodeArgument = ArgumentType.Word("gamemode").from("creative", "survival", "adventure", "spectator");
var playerArgument = ArgumentType.Entity("player").onlyPlayers(true);
Copy link
Contributor

Choose a reason for hiding this comment

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

No var 🙏🏿

addSyntax((sender, context) -> {
Player player = (Player) sender;
Player target = context.get(playerArgument).findFirstPlayer(sender);
assert target != null;
Copy link
Contributor

Choose a reason for hiding this comment

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

No assert 🙏🏿

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.

[Feature]: Server Commands
2 participants