darwj1

OpenRP Descriptions Configuration

Dec 26th, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 5.55 KB | None | 0 0
  1. # OpenRP Descriptions.
  2. # Made by Darwin Jonathan, 2020.
  3.  
  4. # Placeholder list:
  5. # &(any color code) - 0-9, a-f.
  6. # {player$user} - Username of a player. e.g. untoldpotential.
  7. # {player$displayName} - Display name of a player. e.g. [prefix]~Darwin[suffix]
  8.  
  9. # You can use the following in any PlaceholderAPI-supporting plugin: %orpdesc_(value)%
  10. # You may also take any PlaceholderAPI value & use it here.
  11.  
  12. # Every field you add must be under "fields".
  13. fields:
  14.  # I have made two very useful examples. You can add as may as you want.
  15.   charname:
  16.  
  17.     # command: How a player can change this variable. In this example: /char name set (x)
  18.     # If the command repeats in multiple places, the first field found is taken.
  19.     command:
  20.    - name
  21.    
  22.     # changeable: Set this to true if you want to prohibit the player from changing this field via a command.
  23.     # Set to false or remove completely to ignore.
  24.     unchangeable: false
  25.    
  26.     # allowed: set up what you can type in this field.
  27.     allowed:
  28.       # type: if 0 or less, it will only allow the values IN your list. e.g. for letters only: "abcdefghijklmnopqrstuvwxyz"
  29.        # if type is 1, it will disable ONLY the values in your list. e.g. to disable numbers: "0123456789"
  30.        # if type is 2 or higher, it will allow only specific strings in the list, e.g. ["Male", "Female"]
  31.        type: 0
  32.        # caps: if your list contains "a", should it also check for A? If yes, set to 'ignore'.
  33.        # if you want the caps to be case-sensitive,
  34.        caps: false
  35.        # values: the values you want to check. Simply remove if you do not want any.
  36.        values: 'abcdefghijklmnopqrstuvwxyz''".,'
  37.    
  38.    # default-value: If a player hasn't set this value yet, what should it be replaced with?
  39.    # If you set MORE than one value in the list, then it'll pick a random one.
  40.    default-value:
  41.    - '<Unknown>'
  42.    
  43.    # prohibit-spaces: Set to true if you want the input to be a one-liner.
  44.    # Set to false or remove completely to ignore.
  45.    prohibit-spaces: false
  46.    
  47.    # min-length: How long, in characters, can a player's input be. In this example: 3.
  48.    # Set to a number smaller than 0 or remove entirely to have no minimum limit.
  49.    min-length: 3
  50.    
  51.    # max-length: How long, in characters, can a player's input be. In this example: 16.
  52.    # Set to a number smaller than 0 or remove entirely to have no maximum limit.
  53.    max-length: 16
  54.    
  55.    # length-checks-for-color-codes: Set to true if you want to make max-length to take color codes as characters.
  56.    # Set to false or remove entirely to ignore.
  57.    length-checks-for-color-codes: false
  58.    
  59.    # color-code-perm: The permission needed for a player to use color codes in this field.
  60.    color-code-perm: 'orpdesc.color.charname'
  61.    
  62.    # randomizer: If the value stored happens to be a number, if this is enabled, it will add/subtract this value from it.
  63.    # Each player has their own random value.
  64.    # Set to null, 0, or remove entirely to ignore.
  65.    randomizer: 0
  66.    
  67.    # ignore-randomizer-perm: If the player has this permission set, the randomizer number is ignored.
  68.    # This is very useful if you want it to be ignored for a player that has some special role.
  69.    ignore-randomizer-perm: 'orpdesc.ignorerand.charname'
  70.    
  71.    # set-delay-in-seconds: how often is a player allowed to set this value.
  72.    # Set to 0 or lower, or remove entirely to ignore.
  73.    set-delay-in-seconds: 10
  74.    
  75.    # set-bypass-perm: a permission to bypass the set cooldown.
  76.    # This might be useful for a donator rank.
  77.    set-delay-bypass-perm: 'orpdesc.set.bypass.charname'
  78.    
  79.  chardesc:
  80.    command:
  81.    - desc
  82.    - description
  83.    allowed:
  84.      type: 1
  85.      caps: false
  86.    default-value:
  87.    - 'No description set.'
  88.    color-code-perm: 'orpdesc.color.chardesc'
  89.    set-delay-in-seconds: 10
  90.    set-delay-bypass-perm: 'orpdesc.set.bypass.chardesc'
  91.    
  92.  chargender:
  93.    command:
  94.    - gender
  95.    allowed:
  96.      type: 2
  97.      caps: false
  98.      values:
  99.      - "Male"
  100.      - "Female"
  101.    default-value:
  102.    - "Other"
  103.    color-code-perm: 'orpdesc.color.chargender'
  104.    set-delay-in-seconds: 10
  105.    set-delay-bypass-perm: 'orpdesc.set.bypass.charname'
  106.  
  107.  charage:
  108.     command:
  109.     - age
  110.     allowed:
  111.       type: 1
  112.       caps: false
  113.       values: '0123456789'
  114.     min-length: 2
  115.     max-length: 2
  116.     prohibit-spaces: true
  117.     default-value:
  118.     - "20"
  119.     color-code-perm: 'orpdesc.color.charage'
  120.     set-delay-in-seconds: 900
  121.     set-delay-bypass-perm: 'orpdesc.set.bypass.charage'
  122.    
  123.    
  124.  
  125. # Set this to true, if you want players to be right-clickable to see their character card.
  126. is-player-info-viewable: true
  127.  
  128. # Set this to true, if you want player to have to CROUCH while right-clicking to view the card.
  129. can-view-only-if-crouching: true
  130.  
  131. # This will let you do /char (field) override (user), and forcefully set the field to anything, regardless of settings.
  132. perm-to-override-values: 'orpdesc.override'
  133.  
  134. # This will let you /char card (user), to forcefully display the character card of a player.
  135. perm-to-view-card-with-command: 'orpdesc.cardadmin'
  136.  
  137. # This will delay how often you can right-click a player to view their card.
  138. character-card-delay-in-seconds: 3
  139.  
  140. # This is what is shown to a player if you right-click on them.
  141. on-right-click:
  142. - '&bPlayer Name: &e{player$user}'
  143. - '&aCharacter Name: &7%orpdesc_charname%'
  144. - '&aCharacter Gender: &7%orpdesc_chargender%'
  145. - '&aCharacter Age: &7%orpdesc_charage%'
  146. - '&aCharacter Description:'
  147. - '&f&o%orpdesc_chardesc%'
Add Comment
Please, Sign In to add comment