Commands

Commands

View as Markdown ·

On this page

The following list shows all available commands for the plugin.

Command alias: /phoenixnpcs, /phoenixn, /pnpc, /pnpcs, /npc, /npcs

/phoenixnpcs and /pnpc always work. Another plugin, such as Citizens, can own /npc and /npcs; the server console says so on startup.

<> - Required
[] - Optional

Command Description
/pnpc create <id> [type] Creates an NPC where you stand. Without a type it is a player NPC.
/pnpc remove <id> Removes an NPC and its file.
/pnpc list Lists every NPC with its location. Click an NPC in the list to teleport to it.
/pnpc teleport <id> Teleports you to an NPC.
/pnpc tphere <id> Moves an NPC to where you stand.
/pnpc movehere <id> Moves an NPC to where you stand, the same as tphere.
/pnpc moveto <id> <x> <y> <z> [world] Moves an NPC to coordinates. Whole numbers for x and z put it in the middle of that block. Without a world it stays in your world, or the NPC's own world from the console.
/pnpc rotate <id> <yaw> [pitch] Sets which way an NPC faces. Pitch goes from -90 to 90.
/pnpc center <id> Moves an NPC to the middle of its block.
/pnpc info <id> Shows an NPC's name, type or model, skin, group, click actions and location. Click the location to teleport there.
/pnpc test <id> [right|left] Runs an NPC's actions for that click on you and says whether they ran to the end. It first lists anything that would stop a real click: the NPC is disabled, has a setup problem or is not shown to you. Click cooldown and use limits are skipped; costs and rewards are real.
/pnpc problems Lists every NPC with a setup problem and every NPC file that could not be read. Click an NPC to edit it.
/pnpc refresh <id> Spawns an NPC again for everyone who sees it.
/pnpc nearby [radius] Lists the NPCs within 10 blocks, or the radius you give up to 256, nearest first. Click one to teleport to it.
/pnpc clone <id> <new-id> Clones an NPC to where you stand.
/pnpc example <name> Places a ready-made example NPC in front of you.
/pnpc skull <id> Gives you a player head with the NPC's skin.
/pnpc editor Opens the in-game editor.
/pnpc reload Reloads config.yml, the translations and every NPC.
/pnpc storage status Shows where NPCs are stored and whether servers are in sync.
/pnpc storage migrate <from> <to> Copies every NPC between yaml, sqlite, mysql and mariadb. Set the new type in config.yml afterwards and reload.
/pnpc backup Makes a backup straight away.
Command Description
/pnpc edit Opens the editor of the NPC you look at.
/pnpc edit <id> Opens the editor of an NPC.
/pnpc edit <id> movehere Moves an NPC to where you stand.
/pnpc edit <id> displayname <name> Changes the NPC's display name, a label for the editor, lists and messages. It is not shown above the NPC, see Nameplate & Indicator. @none empties it.
/pnpc edit <id> rename <new-id> Changes the id of an NPC.
/pnpc edit <id> type <type> Changes the NPC to a player or a mob, and drops any model.
`/pnpc edit skin [classic slim]`
`/pnpc edit skin pool <add remove
/pnpc edit <id> skin refresh Looks up the skin of a player name again.
/pnpc edit <id> model <modelengine|bettermodel|none> [model] Shows a model instead of the entity. See Models.
/pnpc edit <id> equip <slot> Gives the NPC the item in your hand in that slot. See Equipment.
/pnpc edit <id> action <click> <add|remove|clear|list> [action] Manages the actions of one click. See Click Actions.
/pnpc edit <id> set <setting> <value> Changes one setting. See Settings.
`/pnpc edit setgroup <group
`/pnpc edit servers <add remove
/pnpc group create <group> Creates a group.
/pnpc group delete <group> Deletes a group and takes its NPCs out of it.
/pnpc group add <group> <id> Puts an NPC in the group. An NPC is in one group at a time, so this moves it from its old one.
/pnpc group remove <group> <id> Takes an NPC out of the group.
/pnpc group list [group] Lists every group with its NPC count, or the NPCs of one group. Click an NPC to teleport to it.
/pnpc group <enable|disable> <group> Turns every NPC of the group on or off.
/pnpc edit <id> condition <add|remove|clear|list> [condition] Manages the show conditions.
/pnpc hide <id> <player> Hides the NPC from a player. See Visibility.
/pnpc show <id> <player> Shows the NPC to that player again.
/pnpc edit <id> resetuses Resets the use counts of the NPC.
Command Description
/pnpc debug visibility <id> [player] Lists why a player cannot see the NPC. See Visibility.
/pnpc debug click <id> [player] Tells you why a player's clicks on the NPC do nothing: no actions, actions still running, a cooldown or a use limit, or which clicks do something.
/pnpc undo Undoes your last NPC change, deleting included. See Undo.
Command Description
/pnpc path add <id> [pause] Adds a waypoint where you stand, with an optional pause in seconds.
/pnpc path remove <id> <number> Removes a waypoint.
/pnpc path clear <id>, /pnpc path list <id> Removes or lists every waypoint.
/pnpc path pause <id> <number> <seconds> Sets how long the NPC waits at a waypoint.
/pnpc path mode <id> <mode> stand, linear, loop, ping_pong or wander.
/pnpc path record <id> <start|stop> Records a route as you walk it.
/pnpc path start <id>, /pnpc path stop <id> Lets the NPC walk again, or freezes it where it is.
/pnpc path home <id> Puts the NPC back where it was placed.
/pnpc path follow <id> [player], /pnpc path stop-follow <id> Makes the NPC follow you or a player, or stop.
/pnpc path anchor-add <id> <name>, /pnpc path anchor-remove <id> <name> Saves a named spot where you stand, or removes it.
/pnpc path anchors <id> Lists the anchors of the NPC.
/pnpc path add-anchor <id> <name> [pause] Adds a waypoint at an anchor.
/pnpc path walkto <id> <target> Makes the NPC walk to an anchor, a player in its world, home or x y z.
/pnpc path <setting> <id> <value> Changes a movement setting.
/pnpc preset statue <id> <name placeholder> [value placeholder] Creates a statue that wears the skin and name of a leaderboard player.
/pnpc preset duels <id> <mode> [unranked|ranked] [solo|duo|trio|quad] Creates a PhoenixDuels queue NPC that shows the queued and playing players.
/pnpc preset server <id> <server> Creates a server selector NPC that shows the PhoenixLobby player count and status.
/pnpc preset crate <id> <crate> [key] Creates an NPC that opens a PhoenixCrates preview and shows the player's keys.

#NPC Ids

An id is 1 to 32 lowercase letters, numbers, - or _, and names the NPC's file. A new NPC is named after its id, so /pnpc create town_guide is shown as Town Guide. Rename one with /pnpc edit <id> rename <new-id> or the Identifier button of the editor; other plugins that use the old id need the new one.

/pnpc edit without an id picks the NPC you look at within 8 blocks.

Every id can also be a selector such as @n, @n[group=shop,distance=..10,limit=3] or @selected. See Selectors.

#Settings

Every setting of /pnpc edit <id> set can also be changed in the editor.

Setting Accepts
glow A color such as gold, or off.
look-at-player, show-in-tab, collidable, enabled, block-while-running, training-dummy true or false.
pushback true, false or default.
pose A pose such as standing, crouching, sleeping or sitting.
scale 0.1 to 10.
cooldown Milliseconds, or default.
distance 1 to 256 blocks, or default.
permission A permission node, or @none.
nameplate-offset -5 to 5 blocks.
proximity-radius 0 to 64 blocks.
proximity-cooldown Milliseconds.
emote none, swing, swing_offhand, crouch or animation.
emote-mode timer or nearby.
emote-interval 1 to 3600 seconds.
emote-radius 1 to 64 blocks.
emote-animation A model animation, or @none.
indicator The symbol shown above the name, or @none.
indicator-condition A condition, or @none.
property A mob property of the NPC's type and its value, such as baby true or villager-profession librarian. default resets it.
hitbox Width and height from 0.1 to 16, such as 1 2, or off.
skin-layer cape, hat, jacket, left-sleeve, right-sleeve, left-pants or right-pants, then on or off.
idle-look, realistic-look, nameplate-hover true or false.
idle-yaw, idle-pitch 0 to 180 and 0 to 90 degrees.
idle-interval 1 to 600 seconds.
look-at-npc An NPC id, @nearest or @none.
hover-distance 1 to 64 blocks.
talk-radius 0 to 64 blocks.
talk-cooldown Milliseconds, at least 1000.
bubble-seconds 1 to 60.
talk-line add <text>, remove <number> or clear.
global-cooldown 0 to 86400000 milliseconds.
max-uses-per-player, max-uses 0 to 1000000, 0 for no limit.
uses-reset never, daily or weekly.
typing-speed 0 to 20 letters per tick.
camera-lock true or false.

#Movement Settings

Every setting of /pnpc path <setting> <id> <value> can also be changed in the Movement menu.

Setting Accepts
speed 0.2 to 10 blocks per second.
wander-radius 1 to 64 blocks.
wander-idle 0 to 3600 seconds.
wander-region A WorldGuard region, or @none for the radius.
pause-radius 0 to 32 blocks.
pause-seconds 0 to 3600 seconds.
follow-distance 1 to 16 blocks.
follow-max-distance 4 to 128 blocks.
follow-teleport, liquids true or false.
My Cart
Spider

Your cart is empty

Looks like the spiders padded through here. Pick a plugin and it will show up here. Continue shopping