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
  3. Custom Conditions

JavaScript Condition

PreviousCustom ConditionsNextMoney Condition

Last updated 2 months ago

Was this helpful?

With this condition you can create a lot of custom conditions.

You have two variables: Player (Rapresents the ) and Server (Rapresent the ).

Now you can create a expression that needs to return a (true or false). Just set the type to and the value to the expression.

Here is an example:

conditions:
    moneyExample:
        type: JAVASCRIPT
        value: "Player.hasPermission('example.permission');"
        text: "Example condition text"

Player
Server
javascript
boolean
JAVASCRIPT