ConditionalEvents
  • ConditionalEvents Wiki
  • How to Start
  • Events Tutorial
  • Event Types
    • Player Events
    • Block Events
    • Item Events
    • Other Events
    • Plugin Events
  • Conditions
  • Actions
    • "To" Actions
    • Event Actions
    • Plugin Actions
  • Variables
  • Custom Events
  • Commands and Permissions
  • Config.yml
  • PlaceholderAPI Variables
  • API
  • Videos
  • Addons
Powered by GitBook
On this page
  • CITIZENS RIGHT CLICK NPC
  • WGEVENTS REGION ENTER
  • WGEVENTS REGION LEAVE
  • PROTOCOLLIB RECEIVE MESSAGE

Was this helpful?

  1. Event Types

Plugin Events

PreviousOther EventsNextConditions

Last updated 1 year ago

Was this helpful?

CITIZENS RIGHT CLICK NPC

Requires Citizens:

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:

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)

Requires WorldGuard Events:

Requires ProtocolLib:

https://www.spigotmc.org/resources/citizens.13811/
https://www.spigotmc.org/resources/worldguard-events.65176/
https://www.spigotmc.org/resources/worldguard-events.65176/
https://www.spigotmc.org/resources/protocollib.1997/