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

Faction setHome with econEnabled will withdraw from faction bank even if creating home fails when outside faction borders #276

Open
r59q opened this issue Jun 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@r59q
Copy link
Contributor

r59q commented Jun 19, 2024

Describe the bug
The f setHome command will attempt to set faction home, and correctly deduct the specified amount from faction bank. If, however, the user is in the wilderness outside the faction, the faction home will automatically be un-set and the faction also loses their money.

To Reproduce
Steps to reproduce the behavior:

  1. create a faction
  2. deposit some money
  3. attempt to setHome in the wilderness
  4. sethome deducts the money
  5. the home will be unset automatically

Expected behavior
Preferably the check to validate the home position occurs before withdrawing money and then cancels the request such that the faction don't lose their money

Screenshots
image

Server Version (please complete the following information):

  • Spigot Version: This server is running Paper version git-Paper-196 (MC: 1.20.1) (Implementing API version 1.20.1-R0.1-SNAPSHOT) (Git: 773dd72)
    You are running the latest version
  • Factions Version: v1.6.9.5-4.1.4-STABLE
  • Minecraft Version: 1.20.1
@r59q r59q added the bug Something isn't working label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant