commands - gonalez/znpcs GitHub Wiki
- Main
- Create
- Delete
- List
- Move
- Teleport
- Type
- Lines
- Skin
- Height
- Action
- List Actions
- Remove Action
- Action Cooldown
- Toggle
- Equip
- Customize
- Path
- Conversation
Displays help for the plugin.
/znpcs
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
To delete a NPC.
-
/znpcs delete <id>
-
<id>
is the NPC id.
-
Example:
/znpcs delete 1
To list all the NPCs.
/znpcs list
To Move a NPC to your location.
-
/znpcs move <id>
-
<id>
is the NPC id.
-
Example:
/znpcs move 1
To teleport to a NPC.
-
/znpcs teleport <id>
-
<id>
is the NPC id.
-
Example:
/znpcs teleport 1
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
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
To Change the skin of a NPC.
-
/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
-
/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
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
To set actions(commands/messages) in a NPC.
- 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
- 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
- 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
- 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
- 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
To list actions set in a NPC.
-
/znpcs action <id> list
-
<id>
is the NPC id.
-
Example:
/znpcs action <id> list
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
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
To toggle different settings for a NPC.
- To toggle if NPC looks towards nearby players or not.
-
/znpcs toggle <id> look
-
<id>
is the NPC id.
-
Example:
/znpcs toggle 1 look
- To toggle the hologram above the NPC.
-
/znpcs toggle <id> holo
-
<id>
is the NPC id.
-
Example:
/znpcs toggle 1 holo
- To toggle self skin view for a NPC.
-
/znpcs toggle <id> mirror
-
<id>
is the NPC id.
-
Example:
/znpcs toggle 1 mirror
- 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
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
andBOOTS
.
-
NOTE: Hold the item that you want to equip in your hand
Example:
/znpcs equip 1 HELMET
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.
To make a NPC move in a 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.
- To exit path creation mode.
/znpcs path exit
Example:
/znpcs path exit
- 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
To setup conversations.
- 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.
- To open the editor gui for conversations.
/znpcs conversation gui
Example:
/znpcs conversation gui
- To delete a conversation.
-
/znpcs conversation remove <name>
-
<name>
is conversation name.
-
Example:
/znpcs conversation remove test1
- 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
-