Sueta

Citizens PlaceholderAPI

1.2

Allow the use of PlaceholderAPI placeholders on citizens npcs

·Plugin

Introduction:

Ever wanted to use PlaceholderAPI placeholders on your citizens npcs? Then, this plugin is what you are looking for. With this plugin, you can set a global placeholder for both the name and the skin.

Usage:

It is very simple:

- To set a name placeholder:

  • 1. Select an NPC using "/npc select"
  • 2. Type "/cpapi setnameplaceholder <placeholderapi_placeholder>"
  • Example: /cpapi setnameplaceholder %server_online%

- To set a skin placeholder:

  • 1. Select an NPC using "/npc select"
  • 2. Type "/cpapi setskinplaceholder <placeholderapi_placeholder>" for
  • Example: /cpapi setskinplaceholder %prisonranksx_name_prestige_1%

- To clear placeholders:

  • 1. Select an NPC using "/npc select"
  • 2. Type "/cpapi clearplaceholders"


NOTE: You can only use global placeholders such as leaderboard placeholders or server placeholders. You can't use %player_name%, and keep in mind that the npc name is limited to 16 characters only.

Commands:

  1. /cpapi help
  2. /cpapi setnameplaceholder <placeholder>
  3. /cpapi setskinplaceholder <placeholder>
  4. /cpapi clearplaceholders
  5. /cpapi update - force update the placeholders

Dependencies:

  • Citizens
  • PlaceholderAPI

Similar projects

Plugin →