-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add /mail clear <player> and /mail clearall commands #4878
Conversation
I'm sorry, I'm still kind of new to GitHub. Is there something I need to do to get this approved? |
We haven't had the time to review this PR yet. Once the 1.19 update is finished, we'll start reviewing PRs that add new features. |
Essentials/src/main/java/com/earth2me/essentials/commands/Commandmail.java
Outdated
Show resolved
Hide resolved
Essentials/src/main/java/com/earth2me/essentials/commands/Commandmail.java
Outdated
Show resolved
Hide resolved
new clearMail function returns user used on to make it easier to send the return message back to the correct source.
Alright, I believe I did what you asked. To make it easier to display the user the clear command was used on, I set the clearMail() command to return that User object so I can include their name in the message. |
Thought I'd give this a poke. Not sure if I have to do anything from here. |
Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
Information
This PR closes #2057.
Details
Proposed feature:
/mail clear [player] and /mail clearall. Functions on online and offline players, and clears their mailboxes. Adds permissions essentials.mail.clear.others and essentials.mail.clearall.
Note; please look closely at my code. This is one of my first times working on a GitHub project, so I want to be sure I'm not breaking anything and that I'm doing it right.
Environments tested:
OS: Windows 11
Java version: Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39)
Demonstration:
Before /mail clearall:

After /mail clearall:

Before /mail clear [player]:

After /mail clear [player]:
