Citizens2 - permission node to allow players to spawn a specific NPC.

Discussion in 'Plugin Development' started by Zeroi9, May 4, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Zeroi9

    I wonder if it's possible to give a permission node, like citizens.npcspawn.playerName, and configure that playerName can only spawn NPC(s) that I add to a list?


    Example:
    Citizens2 configuration
    citizens.npcspawn.Zeroi9
    #ids:
    - 1
    - 5
    - 10

    Permissions:
    Zeroi9
    - citizens.npcspawn.Zeroi9


    Ingame:
    /npc spawn 1
    spawns npc 1
    /npc spawn 5
    spawns npc 5
    /npc spawn 7
    "You are not allowed to spawn this NPC!"

    Bump

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
Thread Status:
Not open for further replies.

Share This Page