diff --git a/EXILED/Exiled.API/Features/Roles/FpcRole.cs b/EXILED/Exiled.API/Features/Roles/FpcRole.cs index 2abfc50377..363ecc4cc7 100644 --- a/EXILED/Exiled.API/Features/Roles/FpcRole.cs +++ b/EXILED/Exiled.API/Features/Roles/FpcRole.cs @@ -313,5 +313,15 @@ public void ResetStamina(bool multipliers = false) StaminaUsageMultiplier = 1f; StaminaRegenMultiplier = 1f; } + + /// + /// Makes the player jump using the default or a specified strength. + /// + /// Optional. The strength of the jump. If not provided, the default jump speed for Role is used. + public void Jump(float? jumpStrength = null) + { + float strength = jumpStrength ?? FirstPersonController.FpcModule.JumpSpeed; + FirstPersonController.FpcModule.Motor.JumpController.ForceJump(strength); + } } }