diff --git a/docs/src/fancynpcs/commands/npc.md b/docs/src/fancynpcs/commands/npc.md index a11e6d63..2fe30d44 100644 --- a/docs/src/fancynpcs/commands/npc.md +++ b/docs/src/fancynpcs/commands/npc.md @@ -151,6 +151,13 @@ Changes whether the NPC should turn to the player when in range. - **Syntax**: `/npc turn_to_player (npc) [state]` - **Permissions**: `fancynpcs.command.npc.turn_to_player` +### Turn npc to player distance + +Changes the distance at which the NPC should turn to the player. + +- **Syntax**: `/npc turn_to_player_distance (npc) [distance]` +- **Permissions**: `fancynpcs.command.npc.turn_to_player_distance` + ### Move npc to your location Teleports specified NPC to your location. @@ -165,6 +172,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` +### Center npc location + +Centers the NPC to the specified location. + +- **Syntax**: `/npc center (npc)` +- **Permissions**: `fancynpcs.command.npc.center` + ### Show nearby npcs Lists all NPCs in your world. Can be filtered and sorted. diff --git a/plugins/fancynpcs/src/main/resources/languages/default.yml b/plugins/fancynpcs/src/main/resources/languages/default.yml index 1dc4ac2d..379ada73 100644 --- a/plugins/fancynpcs/src/main/resources/languages/default.yml +++ b/plugins/fancynpcs/src/main/resources/languages/default.yml @@ -126,7 +126,8 @@ messages: npc_show_in_tab: "Syntax: {primaryColor}/npc show_in_tab {secondaryColor}(npc) (state)" npc_skin: "Syntax: {primaryColor}/npc skin {secondaryColor}(npc) (@none | @mirror | name | uuid | placeholder | url | file name) [--slim]" npc_teleport: "Syntax: {primaryColor}/npc teleport {secondaryColor}(npc)" - npc_turn_to_player: "Syntax: {primaryColor}/npc turn_to_player {secondaryColor}(npc) (state) [distance]" + npc_turn_to_player: "Syntax: {primaryColor}/npc turn_to_player {secondaryColor}(npc) (state)" + npc_turn_to_player_distance: "Syntax: {primaryColor}/npc turn_to_player_distance {secondaryColor}(npc) (state)" npc_type: "Syntax: {primaryColor}/npc type {secondaryColor}(npc) (type)" npc_visibility_distance: "Syntax: {primaryColor}/npc visibility_distance {secondaryColor}(npc) (always_visible | default | not_visible | distance)" @@ -177,7 +178,8 @@ messages: - "Changes whether the NPC is shown in the player-list. This works only on NPCs of PLAYER type.{errorColor}Re-connecting to the server might be required for changes to take effect.'>{primaryColor}/npc show_in_tab {secondaryColor}(npc) (state)" - "Changes skin of the NPC.Supports PlaceholderAPI and MiniPlaceholders.{warningColor}@none - removes the skin{warningColor}@mirror - mirrors player skin{warningColor}(name) - name of any player{warningColor}(url) - url of the skin texture'>{primaryColor}/npc skin {secondaryColor}(npc) (@none | @mirror | name | url) [--slim]" - "Teleports you to the specified NPC.'>{primaryColor}/npc teleport {secondaryColor}(npc)" - - "Changes whether the NPC should turn to the player when in range. Optionally specify a custom turn distance.'>{primaryColor}/npc turn_to_player {secondaryColor}(npc) (state) [distance]" + - "Changes whether the NPC should turn to the player when in range.'>{primaryColor}/npc turn_to_player {secondaryColor}(npc) (state)" + - "Changes the distance at which the NPC should turn to the player.'>{primaryColor}/npc turn_to_player_distance {secondaryColor}(npc) (distance)" - "Changes the type of the NPC.'>{primaryColor}/npc type {secondaryColor}(npc) (type)" - "Changes the visibility distance of the NPC.'>{primaryColor}/npc visibility_distance {secondaryColor}(npc) (default | distance | ...)"