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

Added a "help" player command and "sendmsg" server command. Separated commands and aliases #9

Merged
1 commit merged into from
Apr 18, 2022

Conversation

4Benj
Copy link
Member

@4Benj 4Benj commented Apr 18, 2022

Changes:

  • Help command for the player
    help me pls (Might be an issue later with the auto-scroll within genshin's chat)
  • sendmsg command
    Sends a message to the player
    sendmsg [player id] [message]
  • Players can now send a command using '/' and '!'
    I did this because the helpText for existing commands seemed to assume that the commands used '/'.
  • getAccountByPlayerId(int playerID) is now public within DatabaseHelper.
    This was for sendmsg. I don't know why getAccountById would be public and getAccountByPlayerId isn't. If there was a better way to do this, I'll happily change sendmsg to use that and revert my change.
  • Separated commands and aliases into different HashMaps. It seems more logical not to have them grouped together (It also declutters the help command). I do have another way of doing this with one HashMap but I think it's better like this

Added player "Help" command, added server "sendmsg" command, changed getAcccountByPlayerID to public in DatabaseHelper, and allowed player commands to be submitted with "/" and "!"
@lunaticwhat
Copy link
Member

lunaticwhat commented Apr 18, 2022

segg

@ghost ghost merged commit e3860f4 into Grasscutters:main Apr 18, 2022
ghost pushed a commit that referenced this pull request May 9, 2022
4Benj added a commit to Grasscutter-Backrooms/Grasscutter that referenced this pull request Jul 12, 2022
## Description

Please carefully read the [Contributing note](https://github.com/Grasscutters/Grasscutter/blob/stable/CONTRIBUTING.md) and [Code of conduct](https://github.com/Grasscutters/Grasscutter/blob/development/CODE_OF_CONDUCT.md) before making any pull requests.
And, **Do not make a pull request to merge into stable unless it is a hotfix. Use the development branch instead.**
## Issues fixed by this PR

<!--- Put the links of issues that may be fixed by this PR here (if any). -->
## Type of changes

<!--- Put an `x` in all the boxes that apply your changes. -->

- [ ] Bug fix
- [x] New feature
- [x] Enhancement
- [ ] Documentation

## Checklist:

- [x] My code follows the style guidelines of this project
- [x] My pull request is unique and no other pull requests have been opened for these changes
- [x] I have read the [Contributing note](https://github.com/Grasscutters/Grasscutter/blob/stable/CONTRIBUTING.md) and [Code of conduct](https://github.com/Grasscutters/Grasscutter/blob/development/CODE_OF_CONDUCT.md)
- [x] I am responsible for any copyright issues with my code if it occurs in the future.

Co-authored-by: ayy lmao <ridvan-nuri@windowslive.com>
Co-authored-by: Benj <benjamin7006@gmail.com>
Reviewed-on: https://git.4benj.com/Grasscutter-Backrooms/Grasscutter/pulls/9
4Benj added a commit to Grasscutter-Backrooms/Grasscutter that referenced this pull request Jul 12, 2022
## Description

Please carefully read the [Contributing note](https://github.com/Grasscutters/Grasscutter/blob/stable/CONTRIBUTING.md) and [Code of conduct](https://github.com/Grasscutters/Grasscutter/blob/development/CODE_OF_CONDUCT.md) before making any pull requests.
And, **Do not make a pull request to merge into stable unless it is a hotfix. Use the development branch instead.**
## Issues fixed by this PR

<!--- Put the links of issues that may be fixed by this PR here (if any). -->
## Type of changes

<!--- Put an `x` in all the boxes that apply your changes. -->

- [ ] Bug fix
- [x] New feature
- [x] Enhancement
- [ ] Documentation

## Checklist:

- [x] My code follows the style guidelines of this project
- [x] My pull request is unique and no other pull requests have been opened for these changes
- [x] I have read the [Contributing note](https://github.com/Grasscutters/Grasscutter/blob/stable/CONTRIBUTING.md) and [Code of conduct](https://github.com/Grasscutters/Grasscutter/blob/development/CODE_OF_CONDUCT.md)
- [x] I am responsible for any copyright issues with my code if it occurs in the future.

Co-authored-by: ayy lmao <ridvan-nuri@windowslive.com>
Co-authored-by: Benj <benjamin7006@gmail.com>
Reviewed-on: https://git.4benj.com/Grasscutter-Backrooms/Grasscutter/pulls/9
Birdulon pushed a commit that referenced this pull request Aug 21, 2022
Added a "help" player command and "sendmsg" server command. Separated commands and aliases
Birdulon pushed a commit that referenced this pull request Aug 21, 2022
yunochan pushed a commit to yunochan/Grasscutter that referenced this pull request Jul 4, 2024
This pull request was closed.
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.

2 participants