ConditionalEvents | Custom Actions for certain Events [1.8-1.17] 3.6.3

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

  1. Ajneb97
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    • 1.17
    [​IMG]

    WHAT CAN I DO WITH CONDITIONALEVENTS?

    This plugin allows you to add different conditions to a certain event. If these conditions are acomplished, then custom actions will be executed. The possibilities of what you can do with the plugin are endless. To understand the plugin in a simpler way here some examples:

    Example 1:

    If a player press a button (or any block) in certain coordinates, you can execute some actions for the player, like executing a command, sending him a message, applying some potion effects, and many other actions.

    Example 2:
    If a player damages another player with a certain item, there is a small chance of giving the victim a poison potion effect.

    - With ConditionalEvents you can block commands, kick the players who use them or playing them a sound.
    - You can cancel events like breaking or placing blocks in certain worlds.
    - You can teleport the player to different places after they die depending on which world they are.
    - You can constantly check if a player enters an area and execute some actions for him.
    - If a player wins a plugin minigame you can execute some actions for him. (Plugin API required)

    The plugin has support with PlaceholderAPI so you can add conditions using 1000+ variables. You can also check for events from other plugins!

    [​IMG]
    [​IMG]
    [​IMG]


    [​IMG]

    - 20+ Events:
    • Block Interact
    • Player Respawn
    • Item Interact
    • Player Attack
    • Player Damage
    • Block Break
    • Block Place
    • Player Command
    • Console Command
    • Player Chat
    • Item Consume
    • Player Join
    • Player Leave
    • Player Kill
    • Player Level Up
    • Player Armor
    • Item Move
    • Item Drop
    • Item Pickup
    • Item Craft
    • Item Select
    • Entity Spawn
    • Entity Interact
    • Repetitive
    • Repetitive Server
    • Custom Events (from other plugins)
    - Multiple conditions (using variables)
    - 14 Conditionals
    - Comparizon of variables
    - Math formulas on conditions
    - Multiple actions to execute:

    • Send Chat Message
    • Send JSON Chat Message
    • Console Command
    • Player Command
    • Player Chat
    • Teleport
    • Give Potion Effect
    • Cancel Event
    • Kick Player
    • Play Sound
    • Change Gamemode
    • Send to Server
    • Send Actionbar Message
    • Send Title Message
    • Remove items from inventory
    • Wait Time
    • Actions for the whole server
    • Actions for players in a specific world
    • Actions for players in specific range
    - Events with custom permissions
    - Events with cooldown
    - PlaceholderAPI support
    - Works with 1.8+


    [​IMG]
    REQUIREMENTS:
    1) Spigot or Paper (not craftbukkit)

    2) PlaceholderAPI (optional) https://www.spigotmc.org/resources/placeholderapi.6245/

    To install the plugin on your server just place the ConditionalEvents file inside your plugins folder and start your server. Examples will be generated in the config, you can use them as a reference or delete them.

    To create a new event just add a new configuration section in the config in the "Events" path. Remember to use a different name for each of the events.


    Code (Text):
    Messages:
      prefix: '&4[&bConditionalEvents&4] '
      commandReload: '&aConfig Reloaded.'
      commandNoPermissions: '&cYou don''t have permissions to use this command.'
      seconds: s
      minutes: m
      hours: h
      days: d
    Events:
      event1:
        type: player_respawn
        conditions:
        - '%player_world% equals pvp1 or %player_world% equals pvp2'
        actions:
          default:
          - 'teleport: lobby;0;60;0;90;0'
          - 'message: &cYou died. Teleporting you back to the PvP Lobby...'
      event2:
        type: block_interact
        conditions:
        - '%block_x% == 20'
        - '%block_y% == 60'
        - '%block_z% == 20'
        - '%block_world% equals lobby'
        - '%block% equals STONE_BUTTON'
        - '%action_type% equals RIGHT_CLICK'
        actions:
          default:
          - 'message: &aYou''ve received $500!'
          - 'console_command: eco give %player% 500'
          - 'playsound: %player%;ENTITY_PLAYER_LEVELUP;10;2'
        permission: conditionalevents.event.event2
        permission_error_message: '&cYou need to have a rank to use this button.'
        cooldown: 3600
        cooldown_error_message: '&cYou need to wait &e%time% &cbefore claiming your reward
          again.'
      event3:
        type: player_attack
        conditions:
        - '%victim% equals PLAYER'
        - '%item% equals DIAMOND_SWORD'
        - '%item_name% equals Super Sword'
        - '%random_1-10% >= 8'
        actions:
          default:
          - 'message: &aYour diamond sword poison effect was activated!'
          - 'give_potion_effect: %victim%;POISON;120;1'
      event4:
        type: block_break;block_place
        conditions:
        - '%block_world% equals spawn'
        actions:
          default:
          - 'cancel_event: true'
          - 'message: &cYou can''t break or place blocks on this world.'
          - 'playsound: %player%;BLOCK_NOTE_BLOCK_PLING;10;0.1'
        ignore_with_permission: conditionalevents.ignore.event4
      event5:
        type: player_command
        conditions:
        - '%command% startsWith //calc or %command% startsWith //solve or %command% startsWith
          //eval'
        actions:
          default:
          - 'cancel_event: true'
          - 'kick: &cWhat are you trying to do?'
        ignore_with_permission: conditionalevents.ignore.event5
      event6:
        type: block_interact
        conditions:
        - '%block_x% == 40'
        - '%block_y% == 60'
        - '%block_z% == 40'
        - '%block_world% equals lobby'
        - '%block% equals STONE_BUTTON'
        - '%action_type% equals RIGHT_CLICK'
        - '%statistic_jump% < 1000 execute actions2'
        actions:
          default:
          - 'message: &aYou''ve received $5000!'
          - 'console_command: eco give %player% 5000'
          actions2:
          - 'message: &cYou need at least 1000 jumps to use this button.'
        cooldown: 3600
        cooldown_error_message: '&cYou need to wait &e%time% &cbefore claiming your reward
          again.'
      event7:
        type: repetitive
        repetitive_time: 10
        conditions:
        - '%player_world% equals plotworld'
        - '%player_gamemode% !equals CREATIVE'
        actions:
          default:
          - 'gamemode: CREATIVE'
     

    [​IMG]
    Alias: /conditionalevents

    -/ce help
    Shows plugin commands.
    -/ce reload Reloads config files.
    -/ce verify Checks ALL events for errors.
    -/ce reset <player> <event> Resets an event data for a player.

    There is just one permission to access commands: conditionalevents.admin


    Please avoid posting bad ratings before asking. If you have problems or bugs with the plugin contact with me or post on the plugin discussion and I will take a look at it. You are welcome to give me suggestions of new features you would like to add to the plugin ;)

Recent Updates

  1. 3.6.3
  2. 3.6.2
  3. 3.6.1

Recent Reviews

  1. GeRmAnAnToNiO124
    GeRmAnAnToNiO124
    5/5,
    Version: 3.6.3
    Ajneb este recurso es muy bueno pero tengo una duda no se si pueda realizar que al poner un bloque ej (arena) en el piso cambie a piedra?. Quiero usarlo para cambiar bloques de polvo de concreto a concreto :(
    1. Ajneb97
      Author's Response
      Deberias poder hacerlo ya que el evento de block_place tiene las variables de las coordenadas del bloque, lo que tendrias que intentar hacer es ejecutar una accion de poner otro bloque sobre ese, usando /setblock que es un comando de Minecraft.
  2. CommandAndOrder
    CommandAndOrder
    5/5,
    Version: 3.6.3
    How to check an item's name with color codes?
    %item_name% equals §4§lsword
    didn't work
    1. Ajneb97
      Author's Response
      Thanks for the review! Is not possible, color formatting is completely removed when checking for item name.
  3. Susa2000V
    Susa2000V
    5/5,
    Version: 3.6.3
    Buen trabajo, siempre amaré este plugin .............................................................
    1. Ajneb97
      Author's Response
      Gracias por la review y las 5 estrellas!
  4. banditB4n
    banditB4n
    5/5,
    Version: 3.6.3
    ive been looking or a plugin like this. thanks for keeping it updated!
    ..........
    1. Ajneb97
      Author's Response
      Thanks for the review!
  5. Kdriiq
    Kdriiq
    5/5,
    Version: 3.6.2
    Plugin bastante bueno, se puede hacer muchas cosas. Gracias :) ---------------------
    1. Ajneb97
      Author's Response
      Gracias por la review :)
  6. SASKER_R
    SASKER_R
    5/5,
    Version: 3.6.2
    no me canso de halagar a este plugin, de verdad que tengo mas de 30 eventos creados y cada vez que pienso en hacer algo en mi servidor en la mayoria de los casos conditional events me da la solucion, hize demasiados sistemas como comandos, guardados automaticos entre muchos mas, uno de los mejores plugins de utilidades en spigot.
    1. Ajneb97
      Author's Response
      Gracias por la review!
  7. Jesus27332emilio
    Jesus27332emilio
    5/5,
    Version: 3.6.2
    the best plugin I've ever seen.
    congratulations to the creator.
    god god god god god
    1. Ajneb97
      Author's Response
      Thanks for the review!
  8. ReinadoRojo
    ReinadoRojo
    5/5,
    Version: 3.6.1
    Hola ajneb, me ha servido de mucho tu plugin! Lo que tengo una duda,
    Se podría hacer que solo deje entrar a unas personas con cierto rango a un server cuando este lleno? Si es así porfavor dime como
    1. Ajneb97
      Author's Response
      Si, PlaceholderAPI tiene variables para comprobar el rango del jugador y la cantidad de personas que tiene un server. Lo que te faltaria es encontrar el evento, si quieres bloquearle el acceso mediante un comando entonces usas player_command. Gracias por la review!
  9. tuanbinn2004
    tuanbinn2004
    5/5,
    Version: 3.6.1
    Is there a way to when the player is not eligible. Will it cancel the event on its own?
    1. Ajneb97
      Author's Response
      Thanks for the review, which event are you talking about? You can answer me in the plugin discussion.
  10. MrPepsiman01
    MrPepsiman01
    5/5,
    Version: 3.5.1
    Excelente Plugin, me ayudaste para hacer diversas cosas dentro de mi Network de verdad te lo agradezco mucho :D
    1. Ajneb97
      Author's Response
      Gracias por la review y las 5 estrellas!