ConditionalEvents | Custom Actions for certain Events [1.8-1.16] 2.13.1

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
    [​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]

    - 18+ Events:
    • Block Interact
    • Player Respawn
    • Item Interact
    • Player Attack
    • Player Damage
    • Block Break
    • Block Place
    • Player Command
    • Player Chat
    • Item Consume
    • Player Join
    • Player Leave
    • Player Kill
    • Player Level Up
    • Player Armor
    • Item Move
    • Item Drop
    • Entity Spawn
    • Repetitive
    • Custom Events (from other plugins)
    - Multiple conditions (using variables)
    - Multiple actions to execute:
    • Send Chat Message
    • Send JSON Chat Message
    • Console Command
    • Player Command
    • Teleport
    • Give Potion Effect
    • Cancel Event
    • Kick Player
    • Play Sound
    • Change Gamemode
    • Send to Server
    • Send Actionbar Message
    • Send Title Message
    • 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.

    FULL WIKI ON THIS LINK:
    https://ajneb97.gitbook.io/conditionalevents/

    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 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. 2.13.1
  2. 2.12.2
  3. 2.12.1

Recent Reviews

  1. Bluepuff
    Bluepuff
    5/5,
    Version: 2.12.2
    Increible plugin, combina y mejora funciones que hacia con multiples plugins en condiciones y acciones sencillas! creando habilidades para objetos, tps, eventos, recompensas, penalizaciones, bloqueo de comandos y muchas cosas mas, espero algun dia aprender por completo su configuracion y sacarle mucho mas provecho! Gracias Ajneb por todo, en 3 meses lo que me has enseñado es demasiado.
    1. Ajneb97
      Author's Response
      Gracias a ti por la review! :)
  2. Susa2000V
    Susa2000V
    5/5,
    Version: 2.12.2
    ¡Buena actualización!, este complemento es muy funcional.
    Tengo una duda, estoy en 1.12.2 y quisiera usar el tipo de evento item_interact, ¿hay alguna forma de especificar la ID del item que voy a usar? por ejemplo especificar el la id del color de alguna lana etc.., Saludos.
    1. Ajneb97
      Author's Response
      Gracias por la review! Tendria que agregar una variable que se refiera al datavalue del item ya que actualmente no existe.
  3. ChristianNM
    ChristianNM
    5/5,
    Version: 2.12.1
    De los plugins mas útiles que he visto. Me encanto, es algo sencillo de utilizar
    1. Ajneb97
      Author's Response
      Gracias por la review y las 5 estrellas!
  4. velociXD
    velociXD
    5/5,
    Version: 2.10.1
    Muy buen plugin se pueden hacer bastante bastantes cosas gracias por hacer un plugin como este :) y por seguir actualizandolo !Gracias!
    1. Ajneb97
      Author's Response
      Gracias por la review :)
  5. JXAKO
    JXAKO
    4/5,
    Version: 2.10.1
    Buenisimo plugin, pero tengo un problema con el evento block_place, necesito que bloquee el colocar un bambú de nombre "&6Espada de Esmeralda", pero no funciona la variable de "block_name" o "block_lore" (lore_line_1 equals &7Daño: &c30), intenté con "item_name" y demás pero tampoco funciona, si es que no existe la variable para block_place me podrias decir como hacerlo con un evento custom? y le pongo 5 estrellas, excelente plugin :D
    1. Ajneb97
      Author's Response
      Te respondi en Discord, en la prox actualizacion agregare esas variables!
  6. Susa2000V
    Susa2000V
    5/5,
    Version: 2.9.2
    Excelente plugin, me ha entretenido bastante, ahora estoy intentando con eventos custom. Pero tengo un problema, espero pueda ayudarme!

    Estoy intentando hacer que cuando un jugador suelte un bistec le de una efecto de veneno, pero no me va:

    event1:
    type: custom
    custom_event_data:
    event: org.bukkit.event.player.PlayerDropItemEvent
    player_variable: getPlayer()
    variables_to_capture:
    - '%item%;getItemDrop()'
    conditions:
    - '%item% equals BEEF'
    actions:
    default:
    - 'give_potion_effect: POISON;400;2'

    Gracias por maravilloso plugin! :D
    1. Ajneb97
      Author's Response
      En vez de - '%item%;getItemDrop()'
      intenta usando:
      - '%item%;getItemDrop().getItemStack().getMaterial()'

      Gracias por la review!
  7. DonKolia
    DonKolia
    5/5,
    Version: 2.8.1
    Muy buen plugin. Muy recomendable para MMORPG.
    Esperemos que le pongan interacción con las regiones de World Guard.

    Poner algo estilo:

    Coordinates = 1 1 1
    r=5

    Que una de las condiciones sea esa, que el jugador tenga que estar en un radio de bloques para que algo funcione, en vez de estar poniendo las simbologías.
    1. Ajneb97
      Author's Response
      El placeholderapi ya tiene variables del world guard que puedes usar en las condiciones, gracias por la review :)
  8. Minestick
    Minestick
    5/5,
    Version: 2.8.1
    Very versatile plugin! From broadcasting a message to making custom items there's so many things you can do with it. I'm using it in my SMP server as a neat way to provide tips. :D
    1. Ajneb97
      Author's Response
      Thanks for the review!
  9. Mutant_FM
    Mutant_FM
    5/5,
    Version: 2.7.1
    Buen plugin!, una pregunta, hay alguna condicion que involucre usar un totem? como un mensaje o un efecto de pocion
    1. Ajneb97
      Author's Response
      No se como se usan los totems, pero si es al hacer click derecho sobre este entonces si puedes usar el evento de player_interact. Gracias por la review!
  10. crost284
    crost284
    5/5,
    Version: 2.7.1
    Excelente plugin pero tengo una duda, existe la opcion para hacer que el player que le haga mas daño a una entidad con nombre personalizado se lleve un drop ejemplo: tengo un boss con nombre &6&lSAMURAI y quiero que el player que mas daño le haga se lleve un loot y el segundo otro loot uso mythicmob y no se si se pueda hacer esto con este plugin o si hay alguno me lo dicen pls
    1. Ajneb97
      Author's Response
      Solo podrias agregarle condiciones al evento, pero no agregarle un drop a un mob eso no tiene nada que ver con el plugin creo xD
      Gracias por la review!