EssentialsX

EssentialsX

2M Downloads

/paytoggle returns wrong message for toggling on or off

TrekkieEnderman opened this issue ยท 1 comments

commented

Information

Full output of /ess version:

[22:00:38] [main/INFO]: [CHAT] Server version: 1.16.1-R0.1-SNAPSHOT git-Paper-135 (MC: 1.16.1)
[22:00:38] [main/INFO]: [CHAT] EssentialsX version: 2.18.1.0
[22:00:38] [main/INFO]: [CHAT] PlaceholderAPI version: 2.10.9
[22:00:38] [main/INFO]: [CHAT] LuckPerms version: 5.1.26
[22:00:38] [main/INFO]: [CHAT] Vault version: 1.7.3-b131
[22:00:38] [main/INFO]: [CHAT] EssentialsXChat version: 2.18.1.0
[22:00:38] [main/INFO]: [CHAT] EssentialsXProtect version: 2.18.1.0
[22:00:38] [main/INFO]: [CHAT] EssentialsXSpawn version: 2.18.1.0
[22:00:38] [main/INFO]: [CHAT] ChestShop version: 3.11 (build 213)

Server log: Not needed.

EssentialsX config: Not needed.

Details

Description
When using /paytoggle, it returns a message opposite from whether you're toggling it on or off. This is just a simple mistake in the code.
In Commandpaytoggle class, line 39:
user.sendMessage(!enabled ? tl("payToggleOn") : tl("payToggleOff"));
Removing the "!" will return correct message.

Steps to reproduce

  1. Use "/paytoggle off", and note that it says "You are now accepting payments."

Expected behavior
When toggling pay off, it should say you are no longer accepting payments, and vice versa for when you toggling pay on.

Screenshots
Pretty sure the description above is clear enough.

commented

This has been fixed as of 18534f8 - you can download the latest version from the EssentialsX website.