mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
docs: Add npc rotate command and inverted need_permission
This commit is contained in:
@@ -177,6 +177,13 @@ Teleports NPC to specified location.
|
||||
- **Syntax**: `/npc move_to (npc) (x) (y) (z) [world] [--look-in-my-direction]`
|
||||
- **Permissions**: `fancynpcs.command.npc.move_to`
|
||||
|
||||
### Rotate npc
|
||||
|
||||
Sets the yaw and pitch of the specified NPC.
|
||||
|
||||
- **Syntax**: `/npc rotate (npc) (yaw) (pitch)`
|
||||
- **Permissions**: `fancynpcs.command.npc.rotate`
|
||||
|
||||
### Center npc location
|
||||
|
||||
Centers the NPC to the specified location.
|
||||
|
||||
@@ -122,6 +122,10 @@ Syntax: `need_permission (permission)`
|
||||
|
||||
Example: `/npc action (npc) (trigger) add need_permission my.cool.permission`
|
||||
|
||||
!!!info
|
||||
If you add the `!` prefix to the permission, the action will be inverted. This means that the action list will be canceled if the player has the permission.
|
||||
!!!
|
||||
|
||||
### play_sound
|
||||
|
||||
Plays a sound to the player. This action is useful for creating audio feedback for the player when interacting with the NPC.
|
||||
|
||||
Reference in New Issue
Block a user