Essentials icon indicating copy to clipboard operation
Essentials copied to clipboard

PR Closing #2057 - mail clearall and mail clear [player]

Open Division7 opened this issue 3 years ago • 2 comments

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)

  • [ ] Most recent Paper version (1.XX.Y, git-Paper-BUILD)
  • [x] CraftBukkit/Spigot/Paper 1.18.2
  • [ ] CraftBukkit 1.8.8

Demonstration:

Before /mail clearall: 2022-04-01_19 05 58

After /mail clearall: 2022-04-01_19 06 15

Before /mail clear [player]: 2022-04-01_19 06 34

After /mail clear [player]: 2022-04-01_19 06 47

Division7 avatar Apr 02 '22 02:04 Division7

I'm sorry, I'm still kind of new to GitHub. Is there something I need to do to get this approved?

Division7 avatar Jun 15 '22 03:06 Division7

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.

mdcfe avatar Jun 15 '22 08:06 mdcfe

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.

Division7 avatar Sep 26 '22 20:09 Division7

Thought I'd give this a poke. Not sure if I have to do anything from here.

Division7 avatar Jan 23 '23 03:01 Division7