Commands: Difference between revisions

From Citizens Wiki

Line 57: Line 57:
| /npc list || ''(-a)'' - List all NPCs <br>''(--owner (owner))'' - Owner <br>''(--type (type))'' - Mob type <br>''(--char (character))'' - Character || No || No || No || citizens.npc.list || List NPCs that match at least one of the given conditions
| /npc list || ''(-a)'' - List all NPCs <br>''(--owner (owner))'' - Owner <br>''(--type (type))'' - Mob type <br>''(--char (character))'' - Character || No || No || No || citizens.npc.list || List NPCs that match at least one of the given conditions
|-
|-
| /npc despawn || ''None'' || Yes || Yes || No || citizens.npc.despawn || Despawn an NPC
| /npc despawn || ''None'' || Yes || Yes || No || citizens.npc.despawn || Despawn a NPC
|-
|-
| /npc remove || ''(all)'' - Will remove all NPCs || Yes (Not if "all" is used) || Yes || No || citizens.npc.remove(.all) || Remove an NPC
| /npc remove || ''(all)'' - Will remove all NPCs || Yes (Not if "all" is used) || Yes || No || citizens.npc.remove(.all) || Remove a NPC
|-
|-
| /npc rename || ''[name]'' - New name for the NPC ||| Yes || Yes || No || citizens.npc.rename || Rename an NPC
| /npc rename || ''[name]'' - New name for the NPC ||| Yes || Yes || No || citizens.npc.rename || Rename a NPC
|-
|-
| /npc select || ''[id]'' - ID of the NPC to select || No || Yes || No || citizens.npc.select || Selects an NPC with the given ID
| /npc select || ''[id]'' - ID of the NPC to select || No || Yes || No || citizens.npc.select || Selects a NPC with the given ID
|-
|-
| /npc character || ''[character]'' - Character to use || Yes || Yes || No || citizens.npc.character.* or citizens.npc.character.<character-name> for per-character permissions || Sets the [[Characters|character]] of an NPC
| /npc character || ''[character]'' - Character to use || Yes || Yes || No || citizens.npc.character.* or citizens.npc.character.<character-name> for per-character permissions || Sets the [[Characters|character]] of a NPC
|-
|-
| /npc owner || ''(name)'' - Name of the new owner, set as "server" if you want Citizens Admins (players with "citizens.admin" permission) to be owner || Yes || Yes || No || citizens.npc.owner || Sets the owner of an NPC
| /npc owner || ''(name)'' - Name of the new owner, set as "server" if you want Citizens Admins (players with "citizens.admin" permission) to be owner || Yes || Yes || No || citizens.npc.owner || Sets the owner of a NPC
|-
|-
| /npc spawn || ''[id]'' - ID of the NPC you want to spawn || Yes || Yes || No || citizens.npc.spawn || Spawn an existing NPC
| /npc spawn || ''[id]'' - ID of the NPC you want to spawn || Yes || Yes || No || citizens.npc.spawn || Spawn a existing NPC
|-
|-
| /npc tphere || ''None'' || Yes || Yes || No || citizens.npc.tphere || Teleport an NPC to your location
| /npc tphere || ''None'' || Yes || Yes || No || citizens.npc.tphere || Teleport a NPC to your location
|-
|-
| /npc tp || ''None'' || Yes || Yes || No || citizens.npc.tp || Teleport to an NPC
| /npc tp || ''None'' || Yes || Yes || No || citizens.npc.tp || Teleport to a NPC
|-
|-
| /npc lookclose || ''None'' || Yes || Yes || No || citizens.npc.lookclose || Toggle an NPC's look-close state
| /npc lookclose || ''None'' || Yes || Yes || No || citizens.npc.lookclose || Toggle a NPC's look-close state
|-
|-
| /npc equip || ''None'' || Yes || Yes || Yes - PLAYER, PIG, SHEEP, ENDERMAN || citizens.npc.edit.equip || Toggle equipment editor
| /npc equip || ''None'' || Yes || Yes || Yes - PLAYER, PIG, SHEEP, ENDERMAN || citizens.npc.edit.equip || Toggle equipment editor
Line 84: Line 84:
|-
|-
| /npc power || ''None'' || Yes || Yes || Yes - CREEPER || citizens.npc.power || Toggle whether a creeper NPC is powered
| /npc power || ''None'' || Yes || Yes || Yes - CREEPER || citizens.npc.power || Toggle whether a creeper NPC is powered
|-
| /npc age || ''[adult|baby|integer|-l]'' - Adult sets as adult, baby as baby, age integer specifies an exact age, -l toggles whether the age is locked || Yes || Yes || Yes - COW, SHEEP, CHICKEN, PIG, VILLAGER, OCELOT, WOLF || citizens.npc.age || Modify a NPC's age
|}
|}



Revision as of 20:09, 20 March 2012

Read below for detailed command documentation. For more info on per-type commands and permissions, see its corresponding page.

[] - Mandatory
() - Optional

Command - command's syntax
Args Description - description of the command's arguments
Require Selected - whether the command requires an NPC to be selected
Require Ownership - whether the commands requires you to be the owner of the NPC
Require Mob Types - whether the command requires an NPC to be a certain mob type(s)
Permission - command's permission node
Description - short description of the command

Admin Commands

Commands used for administration of Citizens.

Help Commands

Commands used in-game to show the help screen.

NPC Commands

General commands used for all NPCs.

See Also

Characters
Text Syntax
Waypoints