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

Allow the use of punishment commands through console #13

Open
TBG1000 opened this issue Jul 6, 2022 · 0 comments
Open

Allow the use of punishment commands through console #13

TBG1000 opened this issue Jul 6, 2022 · 0 comments

Comments

@TBG1000
Copy link
Member

TBG1000 commented Jul 6, 2022

Issue:

Punishments may only be issued or reverted by staff members connected to the server. Server administrators and staff with access to the server's console should be able to execute such commands as well.

Background:

The /pun command and the /revertp command will only take a player as a sender, preventing the console from using them at all (will output "You must be a player to use this command").

Desired solution:

Allow the use of /pun and /revertp through the server's console. Note that these commands require GUI interaction if some flags or fields are not provided by the sender.

For example, executing /revertp <punishment id> without any input for the optional [reason] field will open a confirmation GUI in-game for the staff member to manipulate. Since this is not possible through the console, the lack of a reason should default to a pre-defined message such as "No reason provided".

The same applies to the /pun command, avoiding interference from GUI-required interaction.

Affected areas / files:

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

No branches or pull requests

1 participant