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

Add wildcard support for /delhome #5919

Merged

Conversation

AdrianOliva2
Copy link
Contributor

@AdrianOliva2 AdrianOliva2 commented Aug 24, 2024

Information

This PR closes #5313.

Details

Proposed feature:

This wildcard deletes all the homes for a specified user.

So instead of having to do /delhome <user>:<home> every time until all homes are deleted, you can just do

/delhome <user>:*

And it'll delete all the user homes

Environments tested:

OS: Windows 11

Java version: JDK 17

  • Most recent Paper version (1.XX.Y, git-Paper-BUILD)
  • CraftBukkit/Spigot/Paper 1.12.2
  • CraftBukkit 1.8.8

Demonstration:

Before

Before

After

After

Command Execution

Command Execution

@AdrianOliva2 AdrianOliva2 force-pushed the feature-delete-all-specific-user-homes branch from fee9987 to ec1f9b1 Compare November 23, 2024 12:15
@JRoy JRoy requested a review from Copilot November 24, 2024 01:41

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no suggestions.

Comments skipped due to low confidence (1)

Essentials/src/main/java/com/earth2me/essentials/commands/Commanddelhome.java:69

  • The new wildcard functionality for deleting all homes should be covered by tests to ensure it works as expected.
case "*":
@JRoy JRoy changed the title Feature added a wildcard in the command /delhome Add wildcard support for /delhome Nov 24, 2024
@JRoy JRoy enabled auto-merge (squash) November 24, 2024 01:45
@JRoy
Copy link
Member

JRoy commented Nov 24, 2024

Thanks for the pull request!

@JRoy JRoy merged commit a87760d into EssentialsX:2.x Nov 24, 2024
1 check passed
Euphillya added a commit to Euphillya/Essentials-Folia that referenced this pull request Nov 24, 2024
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.

[Feature] Add ability to delete all homes of a player / Temporary homes
2 participants