Commands
On this page(2)
The root command is /snnpcs, with the aliases /snpc and /npc by default. Aliases are configurable under command.aliases in config.yml. Every subcommand is for staff.
Ids use letters, numbers, - and _. Folders use the same characters, joined with / for subfolders. Wherever a folder is asked, / alone means the root. Pages, lines and rules are numbered from 1.
Admin commands
| Command | Permission | Description |
|---|---|---|
/snnpcs help | snnpcs.admin | Show the help menu |
/snnpcs reload | snnpcs.admin.reload | Reload config.yml and the language file, then rescan the NPC files |
/snnpcs debug | snnpcs.admin.debug | Toggle debug logging |
/snnpcs create <id> [folder] | snnpcs.admin.create | Create an NPC where you stand, facing where you look |
/snnpcs delete <id> | snnpcs.admin.delete | Delete an NPC and its file |
/snnpcs clone <id> <newId> [folder] | snnpcs.admin.clone | Copy an NPC under a new id |
/snnpcs move <id> <folder> | snnpcs.admin.move | Move an NPC's file to another folder |
/snnpcs movehere <id> | snnpcs.admin.movehere | Move an NPC to where you stand, facing where you look |
/snnpcs tp <id> | snnpcs.admin.tp | Teleport to an NPC |
/snnpcs enable <id> | snnpcs.admin.enable | Show a disabled NPC again |
/snnpcs disable <id> | snnpcs.admin.disable | Hide an NPC without deleting it |
/snnpcs near [radius] | snnpcs.admin.near | List the NPCs around you, closest first |
/snnpcs list [folder] | snnpcs.admin.list | List NPCs by folder |
/snnpcs info <id> | snnpcs.admin.info | Show an NPC's properties, view profiles and what you see of it |
/snnpcs set <id> <property> <value...> | snnpcs.admin.set | Change a property; the value reset returns it to the default |
/snnpcs equip <id> <slot> <material|hand|clear> | snnpcs.admin.equip | Dress an NPC |
/snnpcs play <id> <animation> [loop] | snnpcs.admin.play | Play a model animation, or swing |
/snnpcs skin set <id> <source...> | snnpcs.admin.skin.set | Set the skin |
/snnpcs skin refresh <id> | snnpcs.admin.skin.refresh | Fetch the skin again and send it to viewers |
/snnpcs model set <id> <source> | snnpcs.admin.model.set | Give an NPC a model, written prefix:id |
/snnpcs model clear <id> | snnpcs.admin.model.clear | Take the model off |
/snnpcs profile add <id> <clients> <form> | snnpcs.admin.profile.add | Add a view profile at the end of the NPC's own rules |
/snnpcs profile set <id> <n> <property> <value> | snnpcs.admin.profile.set | Change one property of rule n |
/snnpcs profile remove <id> <n> | snnpcs.admin.profile.remove | Remove rule n |
/snnpcs profile preview <id> <version> | snnpcs.admin.profile.preview | Show what a client of that release would see |
/snnpcs hologram add <id> <page> <content...> | snnpcs.admin.hologram.add | Add a line at the end of a page |
/snnpcs hologram set <id> <page> <line> <content...> | snnpcs.admin.hologram.set | Replace a line |
/snnpcs hologram insert <id> <page> <line> <content...> | snnpcs.admin.hologram.insert | Insert a line before another |
/snnpcs hologram remove <id> <page> <line> | snnpcs.admin.hologram.remove | Remove a line |
/snnpcs hologram size <id> <page> <line> <value...> | snnpcs.admin.hologram.size | Change the size of one line |
/snnpcs hologram page-add <id> | snnpcs.admin.hologram.page-add | Add an empty page |
/snnpcs hologram page-remove <id> <page> | snnpcs.admin.hologram.page-remove | Remove a page with its lines |
/snnpcs hologram gap <id> <value> | snnpcs.admin.hologram.gap | Set the blocks between the NPC and its hologram |
/snnpcs action add <id> <click> <action...> | snnpcs.admin.action.add | Add an action to a click |
/snnpcs action remove <id> <click> <n> | snnpcs.admin.action.remove | Remove action n of a click |
/snnpcs action clear <id> <click> | snnpcs.admin.action.clear | Remove every action of a click |
create, movehere, tp and near need a player, and so does equip <id> <slot> hand. Every other command also works from the console. The commands change file NPCs only: an NPC held by another plugin answers that it belongs to that plugin.
Notes
setproperties:view-distance,look-at-players,type,scale,skin-layers,glow,model-scale,model-height,animation,cooldownandhologram-gap.equipslots:main-hand,off-hand,head,chest,legs,feet. The item is a material name, orhandto copy the item you hold exactly: head textures, item models, custom model data, enchantments, trims, colors and name. A copied item is saved as itsmaterialplus aserializedkey holding the whole stack; a server that cannot read that key (an item copied on a newer Minecraft version) shows the material and logs one warning.- Click types:
left,right,shift-left,shift-rightandany.
The action tags [console], [player-as-op] and [op] run with more permission than the player who clicks. Adding one needs snnpcs.admin.action.elevated. Never put anything a player typed in them.
[player] runs a command directly. [player-chat] <command> makes the player type it instead (the leading / is optional), with their own permissions: use it when another plugin reacts to the command being typed, such as a ConditionalEvents player_command event or a DeluxeMenus open_command without register_command.