EssentialsX

EssentialsX

2M Downloads

[Request] Ability to delete kits in-game

Opened this issue ยท 10 comments

commented

Hey.

I'm staff on a server that gives players the ability to create their own "player server," and they don't have access to the console/config files. I was wondering if it would be possible to create a function to delete kits in-game.

For example:

  • /delkit kitName

This feature would be a great help so we don't have people complaining about deleting their "test kits."
(If it is already a feature please ignore this as I can't find a way to remove kits.)

commented

@drtshock If I may ask, why does it delete all the comments in your config when you run /createkit ?

commented

@drtshock, that's the one. ๐Ÿ‘ I saw you tweet @ us on twitter :)

commented

@nurdturd because that's what the YAML API does when adding new keys/values programmatically.
This can be fixed but not easily and is not worth the hassle.

commented

@nurdturd We're currently working on a fix for this problem as we speak.

commented

no because then we'll get complains about people using it and having it delete all the comments in their config. I know it wouldn't matter in your case, but that's what would happen if added. It wouldn't be difficult for you to add this yourself in your own fork :)

commented

Also, I'm curious which server this is? I'm only aware of https://minehut.com/ that allows something like this :)

commented

@SupaHam the new way will actually break their current setup. RIP

commented

RIP. Time to fork it up I guess. Unbelievable that we aren't prioritized over the other 15k servers that use Essentials /s

commented

ikr rip

But there's a new config option for you guys <3

commented

This was implemented in b97eb12, and then improved on in #2908. The /delkit command and improvements are present in EssentialsX versions 2.17.1.47 and above.