-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.
-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.
-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/
-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.
-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.
-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.
-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.
-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.
-Addedmini_message action type (only for Paper 1.19.4+)
-Addedcancel_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.
-Added%offhand:<item_variable>% variables to
player_swap_hand event (Basically new item variables but for the offhand item)
-Addedclear_inventory action type.
-Modifiedplayer_skin_name option in DiscordSRV Embed action type. Now it is called
author_avatar and you can now use URLs.
-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>
-AddedCUSTOM 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.
-Addedstopsound 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.
-Addedimage 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.
-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.
-Addedremove_item_slot action type.
-Addedset_event_xp action type that works for the
Player Fish and
Block break events.
-Modifiedcancel_drop action type. Xp is now not cancelled, you can use
set_event_xp action for that.
-Addedplayer_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.
-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.
-Addedset_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.
-Addedskull_texture and
skull_owner properties to
set_block event.
-Addedplayer_close_inventory event type.
-Added%original_damage% variable to
player_attack and
player_damage events.
-Modifieddiscordsrv_embed action. Now, the color property must be specified as a RGB value.
-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.
-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.
-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.
-Addeddebug_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.
-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.
-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.
-Addedcall 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.
-Addedcall_event action type. Works for the previous event.
-Added%inventory_title% variable to
player_open_inventory event.
-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.
-Addedprotocollib_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.
-Addedallow_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.
-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.
-Addedplayer_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).
-Addedplayer_pre_join event type (Executed when a player tries to join the server).
-Addedprevent_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/
-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).
-Addedset_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.
-Addedhide_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.
-Addedhide_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.
-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.
-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.
-Addedignore_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.
-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/
-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/
-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.
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.
-Addedprevent_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.
-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/
-Addedconditionalevents.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/
-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.
-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.
-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.
-Addedto_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.
-Addedto_condition_groups config option. This option is used with the previous action.
-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.
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.
-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).
-Addedcancel_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.
-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.
-Addedplayer_teleport event type.
-Addedplayer_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.
-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)
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.
-Addedkeep_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.
-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.
-Addedfirework 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
-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/
-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+.
-Added target variables to
entity_interact event.
-Fixed nullpointerexception error when trying to get head texture variable in block events.
-Fixedentity_interact event, it was being fired twice.
-Added/ce enable and
/ce disable commands.
-Added%online_players_from% and
%online_players_to% variables to
player_world_change event.
-Addedplaysound_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.
-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.
-Addedwait_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/
-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.
-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.
-Addedrepetitive_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.
-Addedconsole_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.
-Addeditem_pickup event type.
-Added%player_has_potioneffect_<type>% global variable.
-Added API event: ConditionalEventsEvent (Event called when conditions for an event are accomplished)
-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.
-Addedremove_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/
-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/
-Addedremove_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/
-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.
-Added 1.16 colors for the message action.
-AddedPHYSICAL action type for
block_interact event. This works when using pressure plates.
-Fixed some console errors on custom events.
IMPORTANT UPDATE! -Addedto_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.
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.
-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)
IMPORTANT UPDATE! playsound and give_potion_effect actions were updated!
-Addedto_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.
-Modifiedplaysound and
give_potion_effect actions. They don't require a player variable anymore.
-Fixed some performance issues.
-Addeditem_move event type.
-Addedenabled 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.
-Addedplayer_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.
-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!
-Addedone_time option for events. If set to true, the event will be activated just one time for the player.
-Addedone_time_error_message option for events.
-Fixed some bugs regarding cooldowns when closing server.