ConditionalEvents | Custom Actions for specific Events [1.8-1.21.4] icon

ConditionalEvents | Custom Actions for specific Events [1.8-1.21.4] -----

Plugin that constantly checks for conditions on specific events and executes custom actions!



2.0.1
-Added Custom Events.
Now, the plugin allows you to check for any player event you want, even from other plugins. Here you can find an example for my plugin Defensive Turrets. ConditionalEvents will check whenever a player places a Turret and cancel the event if the player is on certain world. FULL TUTORIAL ON PLUGIN PAGE!
Code (YAML):
 event8:
    type
: custom
    custom_event_data
:
      event
: dt.ajneb97.api.TurretPlaceEvent
      player_variable
: getPlayer ( )
      variables_to_capture
:
     - ' %turret_world%;getLocation().getWorld().getName()'
    conditions
:
   - ' %turret_world% equals spawn'
    actions
:
      default
:
      - 'cancel_event
: true'
      - 'message
: &cYou can''t place turrets on this world.'
      - 'playsound
: %player%;NOTE_PLING;10;0.1'
-Fixed bug regarding check of events multiple times.
----------, Aug 22, 2020
Resource Information
Author:
----------
Total Downloads: 204,289
First Release: Aug 2, 2020
Last Update: Feb 8, 2025
Category: ---------------
All-Time Rating:
351 ratings
Find more info at ajneb97.gitbook.io...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings