Skip to content

Latest commit

 

History

History
195 lines (131 loc) · 5.79 KB

commands.md

File metadata and controls

195 lines (131 loc) · 5.79 KB

FancyNpcs Commands

This section provides detailed information about the various commands available in FancyNpcs, allowing you to make the most out of its features.

/FancNpcs ...

This command is to manage the plugin itself.

version

Description: Shows the current version of the plugin
Syntax: /FancyNpcs version
Permission: FancyNpcs.admin

reload

Description: Reloads the language file and all npcs
Syntax: /FancyNpcs reload
Permission: FancyNpcs.admin

save

Description: Saves all npcs to disk
Syntax: /FancyNpcs save
Permission: FancyNpcs.admin

featureFlags

Description: Shows a list of all enabled feature flags
Syntax: /FancyNpcs featureFlags
Permission: FancyNpcs.admin

/Npc ...

This command is to manage the npcs.

For all subcommands of /npc - FancyNpcs.npc.*

help

Description: Shows a list of all commands
Syntax: /Npc help
Permission: FancyNpcs.npc.help or FancyNpcs.npc.*

info

Description: Shows all important information about an npc
Syntax: /Npc into (npc)
Permission: FancyNpcs.npc.info or FancyNpcs.npc.*

create

Description: Creates a new npc at your location
Syntax: /Npc create (npc)
Permission: FancyNpcs.npc.create or FancyNpcs.npc.*

remove

Description: Removes the npc
Syntax: /Npc remove (npc)
Permission: FancyNpcs.npc.remove or FancyNpcs.npc.*

copy

Description: Creates a copy of the npc
Syntax: /Npc copy (npc) (new name)
Permission: FancyNpcs.npc.copy or FancyNpcs.npc.*

list

Description: Shows a list of all created npcs
Syntax: /Npc list
Permission: FancyNpcs.npc.list or FancyNpcs.npc.*

type

Description: Changes the entity type of the npc
Syntax: /Npc type (npc name) (type)
Permission: FancyNpcs.npc.type or FancyNpcs.npc.*

When using any entity type other than Player, the following features are disabled:

  • Changing the skin
  • Changing the equipment
  • Showing in tab

attribute

Description: Changes a type-specific attribute of the npc
Syntax: /Npc attribute (npc name) (attribute) (value)
Permission: FancyNpcs.npc.attribute or FancyNpcs.npc.*

displayName

Description: Changes the displayname of the npc
Syntax: /Npc displayName (npc name) (display name ...)
Permission: FancyNpcs.npc.displayName or FancyNpcs.npc.*
Placeholders:

  • all placeholders from PlaceholderAPI
  • <empty> will make the displayname disappear completely

showInTab

Description: Changes whether the npc will be shown in the tablist or not
Syntax: /Npc showInTab (npc name) ('true' | 'false')
Permission: FancyNpcs.npc.showInTab or FancyNpcs.npc.*

skin

Description: Changes the skin of the npc
Syntax: /Npc skin (npc name) (username | url to .png)
Syntax: /Npc skin - uses your skin
Permission: FancyNpcs.npc.skin or FancyNpcs.npc.*

equipment

Description: Equips the npc with item you are holding in your mainhand
Syntax: /Npc equipment (npc name) (slot)
Permission: FancyNpcs.npc.equipment or FancyNpcs.npc.*

glowing

Description: Changes whether the npc should glow or not
Syntax: /Npc glowing (npc name) ('true' | 'false')
Permission: FancyNpcs.npc.glowing or FancyNpcs.npc.*

glowingColor

Description: Changes the color of the glowing effect
Syntax: /Npc glowingColor (npc name) (color)
Permission: FancyNpcs.npc.glowingColor or FancyNpcs.npc.*

collidable

Description: Changes whether the NPC will be collidable or not
Syntax: /Npc collidable (npc name) ('true' | 'false')
Permission: FancyNpcs.npc.collidable or FancyNpcs.npc.*

turnToPlayer

Description: Changes whether the npc will turn to near players or not
Syntax: /Npc turnToPlayer (npc name) ('true' | 'false')
Permission: FancyNpcs.npc.turnToPlayer or FancyNpcs.npc.*

message

Description: Changes the messages that will be sent to the player when interacting with the npc
Syntax: /Npc message (npc name) add (message) - adds a new message
Syntax: /Npc message (npc name) set (index) (message) - sets a message at an index
Syntax: /Npc message (npc name) remove (index) - removes a message at an index
Syntax: /Npc message (npc name) clear - removes all messages
Permission: FancyNpcs.npc.message or FancyNpcs.npc.*
Placeholders:

  • all placeholders from PlaceholderAPI

playerCommand

Description: Changes the command that the player executes when interacting with the npc
Syntax: /Npc playerCommand (npc name) ('none' | message ...)
Permission: FancyNpcs.npc.playerCommand or FancyNpcs.npc.*
Placeholders:

  • all placeholders from PlaceholderAPI

serverCommand

Description: Changes the command that the console executes when interacting with the npc
Syntax: /Npc serverCommand (npc name) ('none' | message ...)
Permission: FancyNpcs.npc.serverCommand or FancyNpcs.npc.*
Placeholders:

  • all placeholders from PlaceholderAPI
  • {player} - the player's username

interactionCooldown

Description: Changes the cooldown for player interactions with the npc
Syntax: /Npc interactionCooldown (npc name) (time in seconds)
Permission: FancyNpcs.npc.interactionCooldown or FancyNpcs.npc.*

moveHere

Description: Teleports the npc to you
Syntax: /Npc moveHere (npc name)
Permission: FancyNpcs.npc.moveHere or FancyNpcs.npc.*

teleport

Description: Teleports the npc to the provided location
Syntax: /Npc teleport (npc name) (x) (y) (z) [world]
The world parameter is optional.
Permission: FancyNpcs.npc.teleport or FancyNpcs.npc.*