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

Was this helpful?

Edit on GitHub
Export as PDF
  1. RocketPlaceholders
  2. Configure

Custom Conditions

PreviousConfigureNextJavaScript Condition

Last updated 2 months ago

Was this helpful?

With RocketPlaceholders you can create custom conditions to view the text.

You can view requirement types .

Creating a condition

Here is an example to learn how to create a custom condition.

Let's add a custom permission condition on this placeholder:

  1:
    placeholder: "test"
    text: "This is an example"

Add the conditions section, add the type (PERMISSION) and a value:

    conditions:
      permissionExample:
        type: PERMISSION
        value: "rocketplaceholder.example"
        text: "Example condition"

The priority is based on the order. Here is an example:

    conditions:
      1:
        type: PERMISSION
        value: "rocketplaceholder.example"      
        text: "First condition"
      2:
        type: PERMISSION
        value: "rocketplaceholder.example2"
        text: "Second condition"

If a player has the rocketplaceholder.example and the rocketplaceholder.example2 permissions the text will be First condition because it is on the top.

You can view more informations in the single conditions pages.

here