Cut Players Hair
Commands
Commands
There is no shave command: shaving starts from the clipper item and the Recortar target option. The only command is for admins.
Shaving someone
| Step | What happens |
|---|---|
Use hairclipper |
The clipper goes to your right hand. Use it again to put it away. (With Config.RequireInHand = false, using it shaves the closest player within Config.UseItemDistance) |
| Aim at a player → Recortar | Starts the shave. The option only shows while the clipper is in your hand and on players who meet Config.ShaveConditions |
Request (only with consent) |
The other player gets Solicitud de Recorte and has 15 s to press Aceptar or Negar |
| Shave | Both players play the animation with the trimmer sound |
| After | The shaved player stays bald for Config.ShaveHairLockSeconds |
The clipper is put away on its own if you die, get in a vehicle, draw a weapon or no longer have the item.
| Property | Value |
|---|---|
| Permission | Everyone with the clipper (or admin-granted only with Config.RequirePermission = true) |
| Cooldown | 2 minutes for the shaver (Config.Cooldown; VIPs skip it) |
| Target | Another player right next to you |
Doesn't work when:
Config.Enabled = false→ «Funcion deshabilitada»Config.RequirePermission = trueand you weren't granted → «No tienes permiso para recortar»- You don't carry the clipper → «Necesitas la maquinita para recortar» (
Config.ShaveItemMissing) - The clipper isn't in your hand (
RequireInHand = true) → «Saca la maquinita: úsala desde el inventario» - The other player doesn't meet the conditions → «El jugador tiene que tener las manos arriba» / «… estar esposado»
- The other player already has a pending request → «Ese jugador ya tiene una solicitud pendiente»
- You're too far → «Tienes que estar al lado del jugador»
- The other player is a VIP → silently ignored
- Your cooldown is running → silently ignored
Admin commands
/recorteperm <id> <on|off>
Grants or revokes a player's permission to shave. Only matters when Config.RequirePermission = true.
| Property | Value |
|---|---|
| Permission | Config.AdminGroup (default group.admin, ACE) |
| Persistence | Saved by license, survives restarts with Config.PersistGrants = true |
| Command name | Config.Commands.Perm |
Examples:
/recorteperm 5 on # grant player ID 5
/recorteperm 12 off # revoke player ID 12
Notifications:
- Admin sees: «Permiso otorgado a {name}» / «Permiso removido de {name}»
- The granted player sees: «Un admin te dio permiso para recortar»
- Errors: «Jugador no encontrado», «No se encontró la license del jugador», «Acción debe ser "on" o "off"»
