gnembon / fabric-carpet

Fabric Carpet
MIT License
1.65k stars 261 forks source link

[Suggestion] Make it possible to kick carpet bots with /kick #1759

Open ProClifo opened 11 months ago

ProClifo commented 11 months ago

This would be useful for servers that don't have /player command for everyone but you still wanna kick carpet bots as if they were players. My server uses the survival friendly /playerme script and they don't have access to /player (even moderators). Using /kick would help kicking afk carpet bots, for example if they are lagging.

silnarm commented 11 months ago

There of course is a way to do this already, but the command, that would allow bots/shadows in the first place, is not available.

So it is only a problem due to the use of a script, and the fix should probably be there, or in another. Can't fix this in playerme I think (unless you remove shadow), so try this: kickshadow.zip

ProClifo commented 11 months ago

There of course is a way to do this already, but the command, that would allow bots/shadows in the first place, is not available.

So it is only a problem due to the use of a script, and the fix should probably be there, or in another. Can't fix this in playerme I think (unless you remove shadow), so try this: kickshadow.zip

Thanks for the file, it worked. Only problem is now everyone can use /kickshadow, not just the few select staff members that are able to kick players. But I'll trust people not to abuse it for now :-)

silnarm commented 11 months ago

No problem, didn't think of adding a permission level sorry, but you can add it very easily yourself if that is the way you want it, just open up the script and add a command_permission to the config, like so:

__config() -> {
    'stay_loaded' -> true,
    'scope' -> 'global',
    'command_permission' -> 'ops',
altrisi commented 11 months ago

Another workaround is that /kill is the same as /player <name> kill for fake players iirc, if they have access to that command.

ProClifo commented 11 months ago

Oh they don't haha. That would make players able to kill each other 😂 Also I try not to use the ops system, because I hate it and how I need to restart to change the op level. I use LuckPerms to give command permissions, and only for kick, ban and whitelist. No gameplay advantages, even for staff.