[Feature request] Confirm for doing /clear
Sikatsu opened this issue ยท 11 comments
Often players make a mistake with /clear causing their inventory to be reset.
Theres a confirm feature for /pay, but why not for /clear?
WARNING: This will clear your inventory, to confirm type /clear again
@SupaHam Are you able to implement this perhaps?
Thoughts on #1623?
@SupaHam Looks nice. Hope you will merge it soon.
The new toggle command seems to give an error: https://pastebin.com/E8kvM0GX
But the confirm works fine.
The class Commandclearconfirmtoggle
should be Commandclearinventoryconfirmtoggle
instead.
@SupaHam Builds are failing..
This has been fixed - grab the latest build from the build server.
I feel like if we keep adding confirmation prompts, we might as well make them generic and configurable - for example having a list in the config that contains all the EssentialsX commands that will require confirmation.