Custom EI Conditions

Conditions that are related to other plugins such as Lands, IridiumSkyblock, PlotSquared and more.

If a condition fails to be met, you can enable cancelEvent so if a specific condition isn't completed, cancelEvent will run. You can also customize the error message !

You can also run commands if the condition has failed to execute!

Example:

 customConditions:
    ifOwnerOfTheEI: true
    ifOwnerOfTheEIMsg: '&cMy custom error message here'
    ifOwnerOfTheEICancel: true
    ifOwnerOfTheEICmds:
    - say i am looking for someone else

ifNeedPlayerConfirmation:

  • Description: Asks the player to confirm if he/she is going to activate that activator once.

  • Example:

  customConditions:
    ifNeedPlayerConfirmation: true
  • Example Situations:

    • If the player left-clicks the item, the message will pop up notifying you if you really want to trigger the activator, if you click again, the activator will run

  • Required: NO (Default: false)

  • More Info: You can edit the message by editing it on the locale: confirmMessage: 'Click again to confirm' or in ingame.

ifOwnerOfTheEI - Not

  • Description: Checks if the player (not) owns the executable item (Owners are selected by the first player who obtained the item)

  • Example:

  customConditions:
    ifOwnerOfTheEI: true
    ifOwnerOfTheEIMsg: '' #<- Here is where you will add the custom message.
    
    ifNotOwnerOfTheEI: false
    ifNotOwnerOfTheEIMsg: '' #<- Here is where you will add the custom message.
  • Example Situations:

    • If the player obtained it first and attempts to use it, it will work.

  • Required: NO (Default: false)

Last updated