commands - gonalez/znpcs GitHub Wiki

Commands-img

Overview


Main

Displays help for the plugin.

  • /znpcs

Create

To create a NPC.

  • /znpcs create <id> <type> <name>
    • <id> is the NPC id.
    • <type> is the NPC type. All NPC types are listed here.
    • <name> is the text above the NPC.

Example:

  • /znpcs create 1 PLAYER jeff

Delete

To delete a NPC.

  • /znpcs delete <id>
    • <id> is the NPC id.

Example:

  • /znpcs delete 1

List

To list all the NPCs.

  • /znpcs list

Move

To Move a NPC to your location.

  • /znpcs move <id>
    • <id> is the NPC id.

Example:

  • /znpcs move 1

Teleport

To teleport to a NPC.

  • /znpcs teleport <id>
    • <id> is the NPC id.

Example:

  • /znpcs teleport 1

Type

To Change the type of a NPC.

  • /znpcs type <id> <type>
    • <id> is the NPC id.
    • <type> is the NPC type. All NPC types are listed here.

Example:

  • /znpcs type 1 VILLAGER

Lines

To change text above a NPC.

  • /znpcs lines <id> <text>
    • <id> is the NPC id.
    • <text> is the text that will show above the NPC.

Example:

  • /znpcs lines 1 line-1 line-2

Skin

To Change the skin of a NPC.

Using username

  • /znpcs skin <id> <username>
    • <id> is the NPC id.
    • <username> is the username of the player whos skin will be set to the NPC.

Example:

  • /znpcs skin 1 Notch

Using URL

  • /znpcs skin <id> <url>
    • <id> is the NPC id.
    • <url> is the link to the skin image(should end in .png or .jpg).

Example:

  • /znpcs skin 1 http://novask.in/5126623161.png

Height

To change height of the hologram above NPC.

  • /znpcs height <id> <height>
    • <id> is the NPC id.
    • <height> is the height that hologram is set to(Default is 1).

Example:

  • /znpcs height 1 0.75
  • /znpcs height 1 1.5

Action

To set actions(commands/messages) in a NPC.

CMD

  • The command is run as the player who clicks the NPC.
  • /znpcs action <id> add CMD <command>
    • <id> is the NPC id.
    • <command> is the command that will be executed.

Example:

  • /znpcs action <id> add CMD menu

CONSOLE

  • The command is run as the console.
  • /znpcs action <id> add CONSOLE <command>
    • <id> is the NPC id.
    • <command> is the command that will be executed.

Example:

  • /znpcs action <id> add CONSOLE eco give %player_name% 10

CHAT

  • To send message as the player who clicked the NPC.
  • /znpcs action <id> add CHAT <text>
    • <id> is the NPC id.
    • <text> is the message that will be sent.

Example:

  • /znpcs action <id> add CHAT sample text

MESSAGE

  • To send message to the player who clicked the NPC.
  • /znpcs action <id> add MESSAGE <text>
    • <id> is the NPC id.
    • <text> is the message that will be sent.

Example:

  • /znpcs action <id> add MESSAGE Welcome

SERVER

  • To send the player who clicked the NPC to another server.
  • /znpcs action <id> add SERVER <server>
    • <id> is the NPC id.
    • <server> is the name of server(in the bungeecord config).

NOTE: You need a bungeecord proxy to use this

Example:

  • /znpcs action <id> add SERVER smp

List Actions

To list actions set in a NPC.

  • /znpcs action <id> list
    • <id> is the NPC id.

Example:

  • /znpcs action <id> list

Remove Action

To remove an action from a NPC.

  • /znpcs action <id> remove <actionId>
    • <id> is the NPC id.
    • <actionId> is the action id.

NOTE: You can find the action id using List Actions command.

Example:

  • /znpcs action <id> remove 0

Action Cooldown

To set cooldown for an action in a NPC.

  • /znpcs action <id> cooldown <actionId> <delay>
    • <id> is the NPC id.
    • <actionId> is the action id.
    • <delay> is the cooldown delay in seconds.

NOTE: cooldown means the delay between using the action again.

Cooldown of 5 seconds will mean that the action can be run every 5 seconds

Example:

  • /znpcs action <id> cooldown 0 5

Toggle

To toggle different settings for a NPC.

LOOK

  • To toggle if NPC looks towards nearby players or not.
  • /znpcs toggle <id> look
    • <id> is the NPC id.

Example:

  • /znpcs toggle 1 look

HOLO

  • To toggle the hologram above the NPC.
  • /znpcs toggle <id> holo
    • <id> is the NPC id.

Example:

  • /znpcs toggle 1 holo

MIRROR

  • To toggle self skin view for a NPC.
  • /znpcs toggle <id> mirror
    • <id> is the NPC id.

Example:

  • /znpcs toggle 1 mirror

GLOW

  • To toggle if the npc has the glow effect.
  • /znpcs toggle <id> glow <color>
    • <id> is the NPC id.
    • <color> is the color of glowing effect.

Example:

  • /znpcs toggle 1 glow RED
  • /znpcs toggle 1 glow BLUE

Equip

To equip items/armor to a NPC.

  • /znpcs equip <id> <slot>
    • <id> is the NPC id.
    • <slot> is slot that the item is equipped in.
    • The are HAND,OFFHAND,HELMET,CHESTPLATE,LEGGINGS and BOOTS.

NOTE: Hold the item that you want to equip in your hand

Example:

  • /znpcs equip 1 HELMET

Customize

To customize settings for a NPC.

  • /znpcs customize <id> <type> <value>
    • <id> is the NPC id.
    • <type> is the type of customization. All customize methods here.
    • <value> is the value for the respective customization type.

NOTE: There are different customization type's for different NPC type's.


Path

To make a NPC move in a path.

Create Path

  • To enter path creation mode.
  • /znpcs path create <name>
    • <name> is path name.

Example:

  • /znpcs path create test1

NOTE: After running this command,Move where you want the npc to move. Then run the exit command shown below.

Exit Path

  • To exit path creation mode.
  • /znpcs path exit

Example:

  • /znpcs path exit

Set Path

  • To set path for a NPC.
  • /znpcs path set <id> <name>
    • <id> is the NPC id.
    • <name> is path name.

Example:

  • /znpcs path set 1 test1

Conversation

To setup conversations.

Create conversation

  • To create a conversation.
  • /znpcs conversation create <name>
    • <name> is conversation name.

Example:

  • /znpcs conversation create test1

NOTE: After running this command, use the command below.

Open Gui

  • To open the editor gui for conversations.
  • /znpcs conversation gui

Example:

  • /znpcs conversation gui

Remove conversation

  • To delete a conversation.
  • /znpcs conversation remove <name>
    • <name> is conversation name.

Example:

  • /znpcs conversation remove test1

Set Conversation

  • To set converastion for a NPC.
  • /znpcs conversation set <id> <name> <type>
    • <id> is the NPC id.

    • <name> is conversation name.

    • <type> is conversation type.

    • Available conversation type's are:

      • CLICK : Executes when the player clicks the NPC.
      • RADIUS : Executes when the player is in set radius from the NPC. Example:
    • /znpcs conversation set 1 test1 CLICK

    • /znpcs conversation set 1 test1 RADIUS

⚠️ **GitHub.com Fallback** ⚠️