DCEventManager Wiki
Example config
Events:
MyEvent:
Event: Animation_Start
Actions:
- "[command] say test"
- "[broadcast] &dAnimation %animation% started!"
MyAnotherEvent:
Event: Animation_End
Actions:
- "[broadcast] &dAnimation %animation% ended!"
Events
Animation Start
Called when the animation starts
ID: ANIMATION_START
Placeholders
%player
- Player name%case%
- Case name%casetitle%
- Case title%animation%
- Animation name%group%
- Win group(item) name
Case-Specific Support - check here
Animation Pre Start
Called before the animation starts
ID: ANIMATION_PRE_START
Placeholders
%player
- Player name%case%
- Case name%casetitle%
- Case title%animation%
- Animation name%group%
- Win group(item) name
Case-Specific Support - check here
Animation End
Called when the animation ends
ID: ANIMATION_END
Placeholders
%player
- Player name%case%
- Case name%casetitle%
- Case title%animation%
- Animation name%group%
- Win group(item) name
Case-Specific Support - check here
Animation Registered
Called when the animation is registered in DonateCase
ID: ANIMATION_REGISTERED
Placeholders
%animation%
- Animation name%plugin%
- Plugin name
Case Interact
Called when the player interacts with the case block on the mouse's right button
ID: CASE_INTERACT
Placeholders
%player
- Player name%case%
- Case name%casetitle%
- Case title
Case-Specific Support - check here
Open Case
Called when the player successfully opens the case (from gui) and the animation starts
ID: OPEN_CASE
Placeholders
%player
- Player name%case%
- Case name%casetitle%
- Case title
Case-Specific Support - check here
Pre Open Case
Called when a player tries to open a case via the open menu
ID: PRE_OPEN_CASE
Placeholders
%player
- Player name%case%
- Case name%casetitle%
- Case title
Case-Specific Support - check here
Sub Command Registered
Called when a new subcommand has registered
ID: SUB_COMMAND_REGISTERED
Placeholders
%command%
- Sub command name
Donate Case Disable
Called when DonateCase disabling
ID: DONATE_CASE_DISABLE
Placeholders
- none
Donate Case Enable
Called when DonateCase enabling
ID: DONATE_CASE_ENABLE
Placeholders
- none
Case Gui Click
Called when the player clicks on the case gui
ID: CASE_GUI_CLICK
Placeholders
%player
- Player name%case%
- Case name%casetitle%
- Case title
Slot-Case-Specific Support - check here
Actions
Command
Example
- [command] kick _Jodex__
Broadcast
Example
- [broadcast] Hello!
Case-Specific Support
Events:
MyEvent:
Event: Animation_Start # your event
Case: case # here specific case
Actions:
- "[command] say %case%"
Slot-Case-Specific Support
Events:
MyEvent:
Event: CASE_GUI_CLICK # your event
Case: case # here specific case
Slot: 1 # here specific slot
Actions:
- "[command] say %case%"