Plugin Events

CITIZENS RIGHT CLICK NPC

Event called when a player right clicks on a Citizens NPC.

example:
  type: citizens_right_click_npc
  conditions:
  - '%npc_id% == 50'
  actions:
    default:
    - "player_command: rtp"

Variables:

  • %npc_id% (ID of the clicked NPC)

  • %npc_name% (Name of the clicked NPC)

WGEVENTS REGION ENTER

Event called when a player enters a WorldGuard region.

example:
  type: wgevents_region_enter
  conditions:
  - '%region% == main_city'
  actions:
    default:
    - "title: 20;40;20;&6&lENTERING AREA;&7City of Kryngel"

Variables:

  • %region% (Entered region)

WGEVENTS REGION LEAVE

Event called when a player leaves a WorldGuard region.

example:
  type: wgevents_region_leave
  conditions:
  - '%region% == main_city'
  actions:
    default:
    - "title: 20;40;20;&6&lLEAVING AREA;&7City of Kryngel"

Variables:

  • %region% (Leaved region)

PROTOCOLLIB RECEIVE MESSAGE

Event called when a player receives a chat message.

example:
  type: protocollib_receive_message
  conditions:
  - "%normal_message% contains &cWelcome to the server."
  actions:
    default:
    - "cancel_event: true"

Variables:

  • %normal_message% (Message received including color codes)

  • %normal_message_without_color_codes% (Message received without color codes)

  • %json_message% (Complete JSON format of the message received)

Last updated