Plugin Events
CITIZENS RIGHT CLICK NPC
Requires Citizens: https://www.spigotmc.org/resources/citizens.13811/
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
Requires WorldGuard Events: https://www.spigotmc.org/resources/worldguard-events.65176/
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) 
This event can't be cancelled with cancel_event action.
WGEVENTS REGION LEAVE
Requires WorldGuard Events: https://www.spigotmc.org/resources/worldguard-events.65176/
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) 
This event can't be cancelled with cancel_event action.
PROTOCOLLIB RECEIVE MESSAGE
Requires ProtocolLib: https://www.spigotmc.org/resources/protocollib.1997/
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
Was this helpful?
