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!




-Added: PlaceholderAPI variables will now be parsed in stored items.
-Fixed issue on 1.21.4 servers regarding %item_custom_model_data% variable on item events.
-Fixed bug in playsound_resource_pack action.
-Modified: Detect method for entity_interact event was changed due to some events not being captured.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Feb 8, 2025

-Added RGB colors in the firework action type.
-Added 'force' parameter on the particle action type.
-Added hand equipments in entities summoned using the summon action type.
-Fixed issue with parameters on execute option when using one-time and cooldown prevention activation.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jan 4, 2025

-Added compatibility with 1.21.4.
-Added new 1.21.4 custom model component data properties to item related actions.

Remember to check the WIKI!

https://ajneb97.gitbook.io/conditionalevents/
----------, Dec 9, 2024

-Added compatibility with 1.21.3.
-Fixed issue with items being removed on some items related action types.
----------, Nov 8, 2024

-Added %victim_health% variable on victim related events.
-Fixed multiple issues regarding allow_math_formulas_in_conditions option and parsing values.
-Fixed error when trying to get some variables on custom events.
-Fixed issue with player_armor event and skeleton skulls
-Fixed issue on tab completion for /ce reset command.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Oct 16, 2024

-Fixed %player_is_outside% variable on legacy versions.
-Fixed issue with player head items on 1.21.1.
----------, Sep 27, 2024

-Added: You can now use saved items on the equipment property on the summon action type.
-Added %victim_uuid% variable to victim-related events.
-Fixed issue with item related actions that was preventing to set the amount to saved items.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Aug 21, 2024

-Added compatibility with 1.21.1.
----------, Aug 10, 2024

-Added the possibility to replace/parse variables that have multiple levels of more variables inside. For example %block_at_{player_x}_{math_0:0_{player_y}-1}_{player_z}_{player_world}%. This kind of parsing was not possible in previous versions. Currently this is an experimental feature called variable_replacement, you must enable it in the config.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Aug 8, 2024

-Added /ce item command. This command allows you to save items into a config file so you can use them later on the following actions: give_item, drop_item, set_item.
----------, Jul 28, 2024

-Added player_click_inventory event type.
-Fixed important bug with actions API that was duplicating repetitive events.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jul 12, 2024

-Added set_food_level action type.
-Added lightning_strike action type.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jun 28, 2024

-Fixed compatibility with 1.20-.
----------, Jun 20, 2024

-Added compatibility with 1.21.
----------, Jun 19, 2024

-Added %block_data_at_<x>_<y>_<z>_<world>% global variable.
-Fixed issue with player_armor event, unequip event not being executed when an armor item is replaced with another.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jun 8, 2024

-Added mini_message action type (only for Paper 1.19.4+)
-Added cancel_drop action type to player_kill events.
-Fixed console error spawning some entities using the summon action type.
-Fixed important lag issue when saving players.
-Fixed bug with player_armor event.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, May 11, 2024

-Added compatibility with 1.20.5/1.20.6
----------, May 1, 2024

-Added summon action type, to spawn entities in a certain location (with custom name, health, and equipment).
-Fixed issues with player heads.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Apr 6, 2024

-Added %offhand:<item_variable>% variables to player_swap_hand event (Basically new item variables but for the offhand item)
-Added clear_inventory action type.
-Modified player_skin_name option in DiscordSRV Embed action type. Now it is called author_avatar and you can now use URLs.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Mar 9, 2024

-Added "endsWith" and "matches" (regex) conditionals.
-Fixed important issue with remove_item_slot action type.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Feb 28, 2024

-Added %entity_uuid% variable to entity related events.
-Added silent:true parameter to /ce call command to hide the feedback message.
-Modified: /ce reset all <event> command is now /ce reset * <event>

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Feb 22, 2024

-Added the " slot" and " slot_replace" properties on the give_item action.
-Fixed issue executing actions on the player_pre_join event.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Feb 14, 2024

-Fixed issue regarding events not loading when starting the server.
----------, Feb 7, 2024

-Added CUSTOM ACTIONS to the API. You can now create your own ConditionalEvents actions by implementing the plugin API. These custom actions work exactly like normal actions, but you code your own execution. More info on the wiki.
-Fixed issue with /ce verify command and close_inventory action type.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Feb 4, 2024

-Added stopsound action type (works partially for 1.10+ and fully for 1.17+).
-Added %is_number_<variable>% variable to check whether a certain variable is a number or not. For example in a player_command event: %is_number_{arg_1}%
-Fixed issue/error in latest versions of Paper regarding protocollib_receive_message event.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jan 20, 2024

-Added image and thumbnail properties to discordsrv_embed action type.
-Fixed variables bug on to_target action type.
-Fixed issue with /ce enable and /ce disable commands on custom events.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jan 4, 2024

-Fixed important issue with missing dependency in 1.8-1.16 versions.
----------, Dec 30, 2023

-Fixed: Improved general performance on conditions checks.
-Fixed issue and console error when getting some player heads data.
----------, Dec 29, 2023

-Added: You can now use numerical slot values on the remove_item_slot action.
-Added %normal_message_without_color_codes% variable to protocollib_receive_message event.
-Added %inventory_title% variable to the item_move event.
-Fixed important issue replacing variables in "to" actions.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Dec 15, 2023

-Added compatibility with 1.20.4.
----------, Dec 10, 2023

-Fixed issue and console warning when creating skull items on 1.20.2 version.
----------, Nov 27, 2023

-Added remove_item_slot action type.
-Added set_event_xp action type that works for the Player Fish and Block break events.
-Modified cancel_drop action type. Xp is now not cancelled, you can use set_event_xp action for that.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Nov 22, 2023

-Added heal action type.
-Fixed compatibility of pumpkins on player_armor event.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Oct 28, 2023

-Added player_change_food event type. Only works for 1.16+.
-Added additional message when using a call event on specific players.
-Fixed: Now, /ce call command tab completion doesn't display non call events anymore.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Oct 26, 2023

-Fixed several issues with player armor event:
* Fixed compatibility with 1.20+ versions.
* Fixed an issue with offhand that was preventing the event to be called.
* Fixed an issue with player heads activating the event when they shouldn't.
----------, Oct 19, 2023

-Added set_item action type for player_fish event (Allows to modify the item caught by the player).
-Added yaw and pitch variables on player_teleport event.
-Added skull_texture and skull_owner properties to set_block event.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Oct 3, 2023

-Added compatibility with 1.20.2
----------, Sep 22, 2023

-Added player_close_inventory event type.
-Added %original_damage% variable to player_attack and player_damage events.
-Modified discordsrv_embed action. Now, the color property must be specified as a RGB value.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Sep 21, 2023

-Added %world_is_raining% global variable.
-Added: Playsound actions now have an optional location parameter. When set, the playsound will be heard by all players near this location.
-Fixed issue on /ce verify with to_player action type.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Aug 31, 2023

-Added a %to:<variable>% variable on ALL "to" actions. This allows to replace variables for the selected player in "to" actions.

For example: Now you can send an information message that replaces variables from each selected player like this:
Code (Text):
"to_all: message: &7Hello %to:player%, your current level is &a%to:player_level%"
Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Aug 20, 2023

-Added set_block action type.
-Fixed: Actionbar messages on 1.19+ are no longer considered in the protocollib_receive_message event.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Aug 15, 2023

-Added freeze action type (1.17+).
-Fixed issue with debug command on 'or' and 'and' conditions.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Aug 8, 2023

-Added bStats
-Fixed issue with %action_type% variable on some events, there was a bug on entering pressure plates when sneaking
----------, Aug 4, 2023

3 YEARS OF CONDITIONALEVENTS!!

-Added
'and' conditions separator. Now you can check for multiple conditions in one line, recommended to use with 'execute' option.
-Added player parameter to /ce call command.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Aug 2, 2023

-Fixed important issue with last update and variables inside variables.
----------, Jul 28, 2023

-Added 2 new item variables: %item_color_format_lore% and %item_color_format_lore_line_X%.
-Fixed issue with %random_min_max% variable when used more than once in the same action.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jul 27, 2023

-Added drop_item action type. For now there are limited properties to set to items, but in future updates I will be adding more.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jul 23, 2023

-Added debug_actions option in the config to enable or disable actions in /ce debug command.
-Added an optional <player> parameter to /ce debug command to debug an event only to one player.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jul 21, 2023

-Added give_item action type. For now there are limited properties to set to items, but in future updates I will be adding more.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jul 15, 2023

-Added close_inventory action type.
-Added set_on_fire action type.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jul 14, 2023

-Added "location" parameter to particle and firework actions, which means you can now specify certain coordinates to spawn these effects.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jul 10, 2023

-Added particle action type.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jul 8, 2023

-Added: Now you can use /ce reset command to reset all player data for a certain event, or all events.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jul 3, 2023

-Added to_player special action, that will execute an action only to a certain player.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jun 30, 2023

-Added player_run event type.
-Added player_regain_health event type.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jun 28, 2023

-Added actions debug messages to /ce debug command.
-Added player_damage event compatibility on set_damage action.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jun 24, 2023

-Added server_start and server_stop event types.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jun 21, 2023

-Added %player_is_outside% global variable to check if the player is outside (has no blocks above)
-Fixed console error when player is damaged, on forge and certain mods.
-Fixed important bug on Paper 1.8-1.12 regarding ProtocolLib.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jun 18, 2023

- Added /ce call <event> command that allows to execute a 'call' event with optional variables.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jun 16, 2023

-Added the following variables to player_death event: %killer_type%, %killer_name%, %killer_color_format_name% (These variables will only be present if the player dies because of an entity)
-Fixed issue when loading files inside the events/players folder.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jun 13, 2023

-Added compatibility with 1.20.
-Fixed important bug on variable in default config.
----------, Jun 8, 2023

-Added damage action type.
-Fixed: Fireworks launched with the firework action don't do damage to players anymore.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jun 7, 2023

-Added execute_action_group action type that allows to execute other action groups randomly.

Remember to check the WIKI!

https://ajneb97.gitbook.io/conditionalevents/
----------, Jun 4, 2023

-Fixed protocollib_receive_message event on 1.19.4.
----------, May 31, 2023

-Added call event type. This powerful event can be executed from the actions of other events, meaning you can now check for conditions after actions execution. You can also pass variables from an event to another to make it more specific. More info on the wiki.
-Added call_event action type. Works for the previous event.
-Added %inventory_title% variable to player_open_inventory event.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, May 27, 2023

-Added %conditionalevents_onetime_ready_<event>% PlaceholderAPI variable to check whether a player has executed a one-time event or not.
-Fixed: item_repair event type now only works in 1.13+ versions.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Apr 29, 2023

-Added %item_meta% variable to item variables which provides more extensive information of a certain item.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Apr 22, 2023

-Added discordsrv_embed action type. Allows to send an embed message to a specific DiscordSRV channel. Requires DiscordSRV: https://www.spigotmc.org/resources/discordsrv.18494/
Example:
[​IMG]

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Apr 10, 2023

-Added protocollib_receive_message (Event called when a player receives a chat message, which is useful when you want to translate or block messages. Requires ProtocolLib)
-Fixed some issues on the plugin when dependencies don't load correctly.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Apr 7, 2023

-Added player_sneak event type.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Mar 18, 2023

-Added allow_math_formulas_in_conditions option on events. If you want to compare formulas in the conditions of an event, you must enable this option.
-Fixed: Increased general performance on conditions checks.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Mar 14, 2023

-Modified the random number variable from %random_min-max% to: %random_min_max% (This allows the use of negative numbeers)
-Fixed important issue with verification system for config files inside the events folder.
----------, Mar 8, 2023

-Added player_statistic event type (Event called when a player statistic is incremented, like blocks breaked, jumps, items pickup... This event is extremely useful to implement achievements).

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Feb 26, 2023

-Added player_pre_join event type (Executed when a player tries to join the server).
-Added prevent_join action type to block access to the server on the player_pre_join event.

Remember to check the WIKI!

https://ajneb97.gitbook.io/conditionalevents/
----------, Feb 22, 2023

-Added item_repair event type.
-Fixed issue with item_move event when moving the items using the number keys.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Feb 14, 2023

-Added player_open_inventory event type.
-Fixed issue with %playerblock_above_<distance>% variable.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Feb 5, 2023

-Added: Now, item variables will work for projectiles in player_attack event. Meaning the item variable will be correctly replaced with the bow, crossbow, snowball, etc., that was used to shoot (and not the current item in hand of the player).
----------, Jan 24, 2023

-Added set_death_message action type for player_death event, which allows to replace the player death message with a custom one. You can set it to "no" to hide the death message.
-Added hide_leave_message action type for player_leave event, which allows to completely hide the leave message so you can add a custom one using an action like to_all: message.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jan 23, 2023

-Added hide_join_message action type for player_join event, which allows to completely hide the join message so you can add a custom one using an action like to_all: message.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jan 12, 2023

-Added set_damage action type for player_attack event, which allows to modify the final damage of the attack.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jan 3, 2023

-Added %attack_type% variable to player_attack event. Now the event will be executed for other type of attacks as well, like trident or snowball.
-Fixed error with %playerarmor_name_<type>% variable.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Dec 23, 2022

-Added player_fish event type.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Dec 22, 2022

-Added %randomword_<word1>-<word2>-<wordN>% variable that allows to choose a random word from a list.
-Added %victim_color_format_name% and %entity_color_format_name% variables on victim and entity events.
-Added %damager_color_format_name% variable on player_damage event.
-Fixed issues with colored names on victim/entity variables.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Dec 17, 2022

-Added item_enchant event type.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Dec 15, 2022

-Added ignore_if_cancelled option to events to prevent the execution if the event was already cancelled by another plugin.
-Fixed issue with off hand item on item_interact event.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Dec 7, 2022

-Added multiple location variables to player_teleport event.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Dec 1, 2022

-Fixed /ce reset <player> all success message.
----------, Nov 24, 2022

-Added feature: parameters on execute option . This allows you to reduce the amount of action groups in some cases and reuse the same action group with different parameters.
-Fixed issue truncating damage decimals on player_attack and player_damage events.

Remember to check the WIKI!

https://ajneb97.gitbook.io/conditionalevents/
----------, Nov 22, 2022

-Added %item_color_format_name% variable to item variables which returns the custom name of the item including color codes.
-Fixed some color formatting issues in the debug command.

Remember to check the WIKI!

https://ajneb97.gitbook.io/conditionalevents/
----------, Nov 14, 2022

-Fixed issue with ParseOther and ScoreboardObjectives variables from PlaceholderAPI.
----------, Nov 13, 2022

-Added REGISTER COMMANDS option. If you are using ConditionalEvents to create commands with the usage of player_command events, you can register those commands on the new register_commands option in the config.
-Added entity coordinates variables to entity-related events.
-Modified some entity variables names.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Nov 7, 2022

-Added %main_command% variable to player_command and console_command events.
-Fixed issue with ParseOther variables from PlaceholderAPI.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Nov 4, 2022

-Fixed issue with the following variables: %args_substring_<param1>-<param2>%, %block_below_<distance>% and %block_above_<distance>%.
----------, Nov 2, 2022

IMPORTANT UPDATE!
-Added the possibility to insert variables inside variables using "{ }" characters. For example, %world_time_{player_world}% would return the time on the player's world. This new feature also allows you to insert ConditionalEvents variables inside PlaceholderAPI variables, such as the Math expansion.

Remember to check the WIKI! (I added two examples on a new section called "Variables inside variables" in the Variables chapter)
https://ajneb97.gitbook.io/conditionalevents/
----------, Oct 30, 2022

-Fixed important error on tab autocomplete for /ce reset command.
----------, Oct 28, 2022

-Added prevent_cooldown_activation and prevent_one_time_activation options to events. These properties are useful when using the "execute" option in conditions. You can define a list of action groups where you don't want to activate cooldown/one time. More information in the wiki.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Oct 22, 2022

-Added %block_below_<distance>% and %block_above_<distance>% variables on BLOCK EVENTS.
-Fixed entity_interact event for Armor Stands.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Oct 19, 2022

-Added %playerblock_below_<distance>% and %playerblock_above_<distance>% variables.
-Modified %block_inside% variable to %playerblock_inside%.
-Fixed important issue with repetitive_server and non-player events.

Remember to check the WIKI!

https://ajneb97.gitbook.io/conditionalevents/
----------, Oct 15, 2022

-Added conditionalevents.bypasscooldown.<event> permission to bypass the cooldown of certain event.
-Fixed issue related to sending empty messages.

Remember to check the WIKI!

https://ajneb97.gitbook.io/conditionalevents/
----------, Oct 9, 2022

-Added %conditionalevents_cooldown_<event>% PlaceholderAPI variable to check for events cooldown.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Oct 1, 2022

-Added multiple event configurations system. You can now create multiple event files inside the events folder. This helps you to have your events more organized. (You can still add events on the config.yml file)
-Fixed small issue with tab autocomplete for /ce reset command.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Sep 23, 2022

-Added /ce reset <player> all command to reset all event data from a player.
-Fixed console error when entering a bed on 1.8-1.12 versions.
-Fixed small issue with player data not being removed sometimes.
----------, Sep 12, 2022

-Fixed issue creating default config. Sorry about that.
----------, Aug 26, 2022

-Fixed an issue that was preventing reloading the plugin when something is wrong in the config.
-Fixed item variables on player_kill event.
-Fixed some console errors on custom events.
----------, Aug 26, 2022

-Fixed bug with "to" action tags.
-Fixed item variables on block_break and block_place events.
----------, Aug 22, 2022

-Added citizens_right_click_npc event type (Requires Citizens)
-Added wgevents_region_enter and wgevents_region_leave event types (Requires WorldGuard Events)
-Fixed issue with to_condition action in /ce verify command.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Aug 19, 2022

-Added to_condition action tag. This tag allows you to execute an action for ALL the players that accomplish certain conditions. This is a very powerful feature, which expand the possibilities of what you can do with the plugin, more info on the wiki.
-Added to_condition_groups config option. This option is used with the previous action.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Aug 14, 2022

-Added %block_data% variable on block variables.
-Added %item_amount% variable on item variables.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Aug 13, 2022

-Added player_swap_hand event type.
-Fixed issue with "hours" parameter on cooldowns.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Aug 11, 2022

-Modified the Cooldown and One Time system. The cooldown_error_message and one_time_error_message options were removed, and instead, these options have their own action group. This means you can now execute whatever action you want when a player accomplishes the conditions but they are in cooldown or in one time.
-Modified the /ce reset command message.
-Fixed some issues with default events.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Aug 9, 2022

IMPORTANT UPDATE: It is imperative you update the plugin as soon as possible, an important bug was found.

-Modified: A few modifications were made to the debug command output.
-Fixed very important bug/exploit on player_chat and player_command events.
-Fixed variables on to_world and to_range actions.
-Fixed console error when variables values are not replaced correctly.
----------, Aug 8, 2022

-Modified: Armor global variables were modified to: %playerarmor_<type>% and %playerarmor_name_<type>%. This change fixes multiple issues with armor variables.
-Fixed value of %damage% variable on some events.
-Fixed possible bug with execution of actions (especially console_command action).

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Aug 5, 2022

-Added cancel_drop action type for block_break event.
-Fixed a small configuration issue when using the plugin for the first time.
-Fixed bug with colored actionbar messages in 1.8-1.15 versions.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jul 28, 2022

-Added verifications for event type errors on /ce verify command.
-Added verifications for actions errors on /ce verify command.
-Fixed important bug with player_chat event.
-Fixed console error on some player interaction events.
-Fixed errors on player_attack event.
-Fixed errors when an action group is not found.
----------, Jul 26, 2022

-Added player_teleport event type.
-Added player_bed_enter event type.
-Fixed some issues with item_interact event (some events were being executed 2 times)
-Fixed general action variables for block_interact and item_interact events.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jul 24, 2022

-Added player data save task option in the config to prevent data loss.
-Added %block_inside% global variable. This will return the block the player is inside (like water or some special blocks like when standing on a head)

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jul 21, 2022

IMPORTANT:
ConditionalEvents was fully remade from scratch, it's like a completely new version with several improvements and fixes. This will allow me to implement new features faster. The plugin works the same as before but major changes were made including the following:
  • Possibility to add formulas and variables on both sides of the condition.
  • '==' and 'equals' conditionals now do the exact same thing.
  • Player data is now saved in separate files checking for player UUID instead of player name.
  • Event debug command.
  • Lots of global variables were removed since PlaceholderAPI already provides them.
  • Modified the to_range action.
  • Multiple event types in one event were removed (like block_break;block_place)
  • The Wiki has been updated for more clarity.
Some features may not work as expected, if this is the case please tell me in the discussion so I can fix them.
----------, Jul 20, 2022

-Added compatibility with 1.19.
-Added "particles" option to the give_potion_effect action.
-Fixed cooldown and one-time on "executes" conditions.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jun 9, 2022

-Fixed important issue when using multiple OR conditions with execute option.
----------, May 6, 2022

-Added keep_items action for the player_death event.
-Added %block_below% global variable to check for the block type below the player.
-Fixed issue with custom events.
-Fixed important issue with player_interact event and items in offhand.
-Fixed issue with actions not being executed sometimes.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Apr 2, 2022

-Added %damage%, %damager_type% and %damager_name% variables to player_damage event.
-Added %damage% variable to player_attack event.
-Fixed "%" symbol on actions.
-Fixed firework action in /ce verify command.
-Fixed some console errors on actions.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Feb 15, 2022

-Added firework action.
-Added: Now you can use the PlaceholderAPI CheckItem expansion in the remove_item action, meaning you can remove more specific items from the player inventory using this format:
remove_item: %checkitem_remove_<modifier1>,<modifier2>,<...>%. Information about CheckItem expansion: https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#checkitem

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jan 26, 2022

-Added %cause% variable to player_death event.
-Added %item_amount% variable to item_pickup event.
-Fixed bug in entity events with non living entities.
-Fixed actionbar action issue on repetitive events (For no flickering use a time value of 0: 'actionbar: &fMessage;0')

Remember to check the WIKI!

https://ajneb97.gitbook.io/conditionalevents/
----------, Jan 7, 2022

-Added player_death event type.
-Fixed bug with restore_block action in player heads on walls.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Dec 19, 2021

-Added support for 1.18.
----------, Dec 3, 2021

-Added %world_time_<world>% variable to show the time of a world in ticks.
-Fixed head texture for restore_block action. Remember that this option only fully works on 1.13+.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Nov 9, 2021

-Added target variables to entity_interact event.
-Fixed nullpointerexception error when trying to get head texture variable in block events.
-Fixed entity_interact event, it was being fired twice.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Oct 11, 2021

-Added /ce enable and /ce disable commands.
-Added %online_players_from% and %online_players_to% variables to player_world_change event.
-Added playsound_resource_pack action type.
-Fixed important error when trying to get skull texture in various server versions.
-Fixed possible bug in interact events in 1.9 versions.
-Fixed some /ce verify errors.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Sep 29, 2021

-Fixed important issue when getting head texture data in 1.8-1.12 versions.
----------, Sep 22, 2021

-Added %block_head_texture% variable on block_interact and block_break events.
-Added %slot% variable on item_move event.
-Added special global variable: %empty%. You can use this variable on conditions where other variables return an empty string/text.
-Fixed issue with player_chat events.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Sep 12, 2021

-Fixed issue with latest update regarding cancelling events.
----------, Aug 31, 2021

-Added wait_ticks action type. The same as the wait action type but you can specify the time to wait in ticks.
-Added HEX color support for permission, one time and cooldown messages. Remember that the format is: "#000000Message"
-Fixed order bug when sending multiple messages in the same event.
-Fixed issue with remove_item action type in 1.8-1.12 versions.

Remember to check the WIKI!

https://ajneb97.gitbook.io/conditionalevents/
----------, Aug 31, 2021

-Added: Custom Events now support non-player events.
-Added more item attributes to the remove_item action (datavalue, name, lore).
-Added %victim_name% variable to player_attack and player_kill events.
-Fixed detection of bow shoots in player_attack event.
-Fixed important issue with target variables.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Aug 6, 2021

-Modified: Comparing inconsistent types (like String > Number) will now not throw an error but instead return false.
-Fixed world names with "_" in %block_at_x_y_z_world% variable.
-Fixed world names with "_" in %is_nearby_x_y_z_world_radius% variable.
----------, Jul 11, 2021

-Added variables to player_kill event: %victim_block_x%, %victim_block_y%, %victim_block_z%, %victim_world%
----------, Jun 26, 2021

-Added item_select event type. Event called when playes selects/deselects an item in their hotbar.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jun 23, 2021

-Added compatibility for 1.17.
----------, Jun 15, 2021

-Fixed issue detecting PlaceholderAPI variables on some non-player events.
----------, Jun 12, 2021

-Added repetitive_server event type. This event works by checking conditions on the whole server instead of each player like repetitive event does. It is important not to use any player variable and action on this event.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jun 8, 2021

-Added player_send_chat action type.
-Added item_craft event type.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, May 29, 2021

-Added global variable: %player_is_sneaking%.
-Fixed issue with %item_lore_line_<line>% variable in block place events.
----------, May 5, 2021

-Added update_notification option in the config.
-Fixed several issues with player_respawn event type.
----------, Apr 25, 2021

-Fixed important error on lower Minecraft versions with item_pickup event type.
-Fixed issue with %target:<variable>% variables.
----------, Apr 20, 2021

-Added console_message action type.
-Fixed issue with variables in player_leave event.
-Fixed: Improved performance on item checks.
-Fixed console errors on repetitive and player_leave events.
----------, Apr 19, 2021

-Added item_pickup event type.
-Added %player_has_potioneffect_<type>% global variable.
-Added API event: ConditionalEventsEvent (Event called when conditions for an event are accomplished)

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Apr 18, 2021

-Fixed errors when comparing similar named variables.
----------, Apr 15, 2021

Important update. A lot of changes were made so if something is not working properly, tell me as soon as possible!

-Added:
Comparizon of variables.
Code (Text):
conditions:
- '%item_name% !contains %player_name%'
-Added: Math formulas on conditions.
Code (Text):
conditions:
- '%command% equals /test-kills'
- '%statistic_player_kills% >= %statistic_deaths%*2'

conditions:
- '%player_x% == (%player_z%*3)-1000'
-Fixed bug with /ce verify in to_range and to_world actions.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Apr 13, 2021

-Added 1.16 HEX color support for actionbar and title messages.
----------, Apr 10, 2021

-Added new values for %action_type% variable in block_interact and player_interact events: SHIFT_RIGHT_CLICK and SHIFT_LEFT_CLICK.
-Fixed: Improved performance on some checks.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Mar 25, 2021

-Fixed bug with cancel_event: true action.
-Fixed multiple issues with the latest version.
----------, Mar 17, 2021

-Fixed: Perfomance increased and lag issues fixed on repetitive events.
----------, Mar 14, 2021

-Fixed issue that wasn't allowing to disable repetitive events.
-Fixed issues with /ce verify command.
----------, Mar 10, 2021

-Added /ce verify command to check for errors in your created events.
-Added !contains conditional type.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Mar 7, 2021

-Added centered_message action type.

Remember to check the WIKI!

https://ajneb97.gitbook.io/conditionalevents/
----------, Mar 1, 2021

-Fixed issue with block_interact event and PHYSICAL interactions on 1.9+ versions.
----------, Feb 25, 2021

-Added entity_interact event type.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Feb 13, 2021

-Added item in hand variables for block_interact event.
-Fixed bug with block data on block_restore event for 1.13+ versions.
----------, Feb 4, 2021

-Added console_command event type.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Jan 22, 2021

-Added remove_item action type.
-Modified: %random_player% variables now will return 'none' if no players are found.

Remember to check the WIKI!

https://ajneb97.gitbook.io/conditionalevents/
----------, Jan 21, 2021

-Added %is_nearby_<x>_<y>_<z>_<world>_<radius>% variable.
-Added %random_player_<world>% variable.
-Fixed small bug with repetitive events when deleting them and reloading the config.

Remember to check the WIKI!

https://ajneb97.gitbook.io/conditionalevents/
----------, Jan 15, 2021

-Added player_world_change event type.
-Fixed bug regarding last update.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Dec 26, 2020

-Added remove_potion_effect action type.
-Added %random_player% global variable.
-Fixed bug on block_interact event executing actions two times.

Remember to check the WIKI!

https://ajneb97.gitbook.io/conditionalevents/
----------, Dec 24, 2020

-Added %block_at_<x>_<y>_<z>_<world>% global variable.
-Fixed error regarding to_target action on player_kill events.
----------, Dec 4, 2020

-Added action: player_command_as_op (Executes a command from the player as OP)
-Added event type: player_damage (Event called when a player is taking damage)
-Added %item_durability% variable for ALL item related Events.
----------, Nov 29, 2020

-Added 1.16 colors for the message action.
-Added PHYSICAL action type for block_interact event. This works when using pressure plates.
-Fixed some console errors on custom events.
----------, Nov 21, 2020

IMPORTANT UPDATE!
-Added
to_all special tag: This is a special tag that needs to be added before an action. It will execute the action for all players on the server.
-Removed "Broadcast" actions since you can now use the to_all tag.

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Nov 18, 2020

-Added some items variables to block_place event type.
-Added item_drop event type.
----------, Nov 16, 2020

-Added to_world and to_range special tags.
  • to_world: This is a special tag that needs to be added before an action. It will execute the action for all players in a world.
  • to_range: This is a special tag that needs to be added before an action. It will execute the action for all players inside a certain radius of blocks. It doesn't contains the player involved in this event.
More info on this link: https://ajneb97.gitbook.io/conditionalevents/actions

-Fixed
bug with big cooldowns.
----------, Nov 12, 2020

-Added two new variables for ALL item related Events:
%item_lore% (description of the item in hand)
%item_lore_line_X% (the X line of the description of the item in hand)

Remember to check the WIKI!
https://ajneb97.gitbook.io/conditionalevents/
----------, Oct 30, 2020

-Added json_message and broadcast_json_message actions.
-Added player_leave type of event.
----------, Oct 23, 2020

-Added variables for target players on player_attack and player_kill events. You can use them like this: %target:<normal_variable>%

For example: The variable to obtain the player rank is %vault_rank%. If you want to obtain the target rank use: %target:vault_rank%

Remember to check the WIKI for a full tutorial!
https://ajneb97.gitbook.io/conditionalevents/
----------, Oct 18, 2020

-Added contains type of conditional.
-Added entity_spawn event type.
----------, Oct 7, 2020

IMPORTANT UPDATE!
playsound and give_potion_effect actions were updated!

-Added to_target action. This is a special action for PLAYER_ATTACK event. It will execute the action for the player target (The entity which is being attacked). More info in the Actions section tutorial on this page.
-Modified playsound and give_potion_effect actions. They don't require a player variable anymore.
-Fixed some performance issues.
----------, Oct 3, 2020

-Added broadcast_playsound action.
-Fixed small issue/bug on item_move event.
----------, Sep 29, 2020

-Added broadcast_title action.
-Added broadcast_actionbar action.
-Fixed console error with player_armor event.
----------, Sep 26, 2020

-Fixed: Removed debug messages from the console.
----------, Sep 19, 2020

-Added restore_block action for block_break event type.
----------, Sep 16, 2020

-Added item_move event type.
-Added enabled option on each event. Set it to false to disable the event without removing it from the config.
-Fixed bug with equalsIgnoreCase and !equalsIgnoreCase conditionals.
----------, Sep 10, 2020

-Added player_armor event type.
-Added new file for saving player data like cooldowns.
-Fixed comments being removed from the config.
-Fixed bug with send_to_server action.
----------, Aug 31, 2020

-Added wait action type.
-Added broadcast action type.
----------, Aug 30, 2020

-Added player_levelup event type.
-Added new variables for player command event type: %arg_x%, %args_length%
----------, Aug 27, 2020

-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

-Fixed some reloading config issues.
----------, Aug 16, 2020

-Added player_kill event type.
----------, Aug 12, 2020

-Added %armor_<type>% and %armor_name_<type>% variables.
-Fixed bug in item_interact event.
-Fixed important bug with one_time option.
----------, Aug 11, 2020

-Added title action type.
-Added actionbar action type.
----------, Aug 10, 2020

-Added one_time option for events. If set to true, the event will be activated just one time for the player.
-Added one_time_error_message option for events.
-Fixed some bugs regarding cooldowns when closing server.
----------, Aug 8, 2020

-Added player_join event type.
-Fixed console error with new version message on join.
----------, Aug 7, 2020

-Fixed multiple action bugs.
-Fixed cooldowns bug.
----------, Aug 5, 2020

-Added send_to_server action to automatically connect a player to a bungee server.
-Added equalsIgnoreCase and !equalsIgnoreCase types of conditionals.
----------, Aug 4, 2020

-Added Update Checker.
-Added /ce reset <player> <event> to reset an event cooldown for a player.
-Added alias for plugin command: /conditionalevents
----------, Aug 3, 2020

Resource Information
Author:
----------
Total Downloads: 204,247
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