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

List command + Better message on server stop #238

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

solvictor
Copy link
Contributor

@solvictor solvictor commented Nov 7, 2024

Description

  • Added command /list that print the names of online players
  • Kicking players with a proper message on /stop (Maybe should be added on signal interrupt)

Testing

Use /list in game or in console with or without online players
Use /stop and see the message

Checklist

N/A

  • Code is well-formatted and adheres to project style guidelines: cargo fmt
  • Code does not produce any clippy warnings cargo clippy

@Snowiiii
Copy link
Owner

Snowiiii commented Nov 7, 2024

Please use the PR template

@solvictor
Copy link
Contributor Author

Done

@Snowiiii
Copy link
Owner

Snowiiii commented Nov 7, 2024

I mean there is also the Option that the server is being stoped by CTRL+C or a SIGTERM. But thats not important for now.
Overall looks pretty good. Thanks @solvictor

@Snowiiii Snowiiii merged commit 41e71a8 into Snowiiii:master Nov 7, 2024
9 checks passed
@rimk7
Copy link

rimk7 commented Nov 7, 2024

goat

user622628252416 pushed a commit to user622628252416/Pumpkin that referenced this pull request Nov 7, 2024
* List command

* Stop message on /stop
Snowiiii pushed a commit that referenced this pull request Nov 12, 2024
* add prototype for /give command

* fix /give namespace

* fix accidentally replaced text

* replace block_registry with item_registry

* sync added items with client

* add command and command suggestion packets

* Add List command  (#238)

* List command

* Stop message on /stop

* add coverter for (mostly) correctly obtaining CCommands packet payload from CommandDispatcher

* fix proof of concept suggestions replacing entire command

* add client side command argument suggestions

* fix arg_position_2d and arg_position_3d not setting pos to block center when coordinate is an integer

* add optional server side command suggestions

* disable serverside suggestions for entity args

* remove pumpkin test client_side_arg_parsers

* use unsigned bytes for flags

* add missing command arg parsers

* fix entities parser flags

* add player permission level

* fix merge conflicts

---------

Co-authored-by: user622628252416 <[email protected]>
Co-authored-by: Victor <[email protected]>
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.

3 participants