Lorenzo0111's Plugins
Discord
Lorenzo0111's Plugins
Lorenzo0111's Plugins
  • Home
  • RocketJoin
    • Starting
    • Configure
    • Conditions
      • Permission
      • First Join
    • Join Commands
    • Bungeecord
  • RocketPlaceholders
    • Starting
    • Configure
      • Custom Conditions
        • JavaScript Condition
        • Money Condition
        • Item Condition
        • Permission Condition
        • Group Condition
      • Custom Permissions
    • MySQL
      • MySQL F.A.Q
    • API
    • Dev Builds
  • MultiLang
    • Starting
    • Configuration
    • Translating
    • Messages
    • Gui
    • RealTime
Powered by GitBook
On this page
  • Config:
  • Creating a custom placeholder
  • More informations:
  • Using a JavaScript expression for the placeholder text

Was this helpful?

Edit on GitHub
Export as PDF
  1. RocketPlaceholders

Configure

Config:

#
#
#    _____  _                _           _     _
#    |  __ \| |              | |         | |   | |
#    | |__) | | __ _  ___ ___| |__   ___ | | __| | ___ _ __ ___
#    |  ___/| |/ _` |/ __/ _ \ '_ \ / _ \| |/ _` |/ _ \ '__/ __|
#    | |    | | (_| | (_|  __/ | | | (_) | | (_| |  __/ |  \__ \
#    |_|    |_|\__,_|\___\___|_| |_|\___/|_|\__,_|\___|_|  |___/
#
#
# This config has been generated with RocketPlaceholders v@version@
# RocketPlaceholders Wiki: https://docs.rocketplugins.space/rocketplaceholders

# RocketPlaceholders prefix
prefix: "&9RocketPlaceholders &8»&r"
no_permission: "&cYou do not have permission to use this command!"
debug: false

#Enable Update Message on Join. Default: true
update-message: true

mysql:
  # If this is not enabled will be used local placeholders
  enabled: false
  # The main server is the server from the placeholders are copied
  main: false
  # Database information
  ip: 0.0.0.0
  port: 3306
  username: ""
  password: ""
  database: ""

# All placeholders have been moved in the placeholders folder.

Creating a custom placeholder

In order to create a custom placeholder, you need to create a new file in the placeholders with the following layout:

placeholders:
  test:
    placeholder: "test" # The placeholder will be %rp_test% ( PlaceholderAPI ) or {rp_test} ( MVdWPlaceholderAPI )
    text: "This is an example"
    conditions:
      permissionExample:
        type: PERMISSION # LIST: https://to.lorenzo0111.me/conditions
        value: "rocketplaceholder.example"
        text: "Example text with a permission condition"
      itemExample:
        type: ITEM
        material: STONE
        name: "&cExample"
        text: "Example text with a item condition"

More informations:

Using a JavaScript expression for the placeholder text

placeholders:
    test: #DO NOT USE THE 0 NUMBER
    placeholder: "test" #ex "test" = %rp_test%
    text: "'Hello World' === 'Hello World' ? 'YES' : 'NO'" # This will return YES
    parsejs: true

The JavaScript feature can be used with RocketPlaceholders 1.9.1+

PreviousStartingNextCustom Conditions

Last updated 1 month ago

Was this helpful?

Custom Permissions