Skip to main content

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

info

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
tip

Case-Specific Support - check here


Animation Pre Start

info

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
tip

Case-Specific Support - check here


Animation End

info

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
tip

Case-Specific Support - check here


Animation Registered

info

Called when the animation is registered in DonateCase

ID: ANIMATION_REGISTERED

Placeholders

  • %animation% - Animation name
  • %plugin% - Plugin name

Case Interact

info

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
tip

Case-Specific Support - check here


Open Case

info

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
tip

Case-Specific Support - check here


Pre Open Case

info

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
tip

Case-Specific Support - check here


Sub Command Registered

info

Called when a new subcommand has registered

ID: SUB_COMMAND_REGISTERED

Placeholders

  • %command% - Sub command name

info

Called when DonateCase disabling

ID: DONATE_CASE_DISABLE

Placeholders

  • none

info

Called when DonateCase enabling

ID: DONATE_CASE_ENABLE

Placeholders

  • none

Case Gui Click

info

Called when the player clicks on the case gui

ID: CASE_GUI_CLICK

Placeholders

  • %player - Player name
  • %case% - Case name
  • %casetitle% - Case title
tip

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%"