Skip to content
Builds
No builds

Maven project CHSpigot

CHSpigot

Gives access to API available in Spigot but not Bukkit. As CommandHelper now depends on Spigot, these functions and events are subject to be moved into CommandHelper at some point.

Recommended Builds

Event Documentation

item_damage

This event is called when a player's item (like a tool) will take damage. Cancelling this event will prevent damage from being taken on items.

Prefilters

  • player: String Match
  • itemname: String Match

Event Data

  • player: the player's name
  • item: an item array of the item being damaged
  • damage: the amount of durability damage the item will be taking

Mutable Fields

  • damage

entity_mount

This event is called when an entity mounts another entity.

Prefilters

  • type: Macro Match
  • mounttype: Macro Match

Event Data

  • type: The type of entity that is mounting
  • id: The UUID of the mounting entity
  • mounttype: The type of entity that is mounted
  • mountid: The UUID of the mounted entity

entity_dismount

This event is called when an entity dismounts another entity. This event cannot be cancelled.

Prefilters

  • type: Macro Match
  • mounttype: Macro Match

Event Data

  • type: The type of entity that is dismounting
  • id: The UUID of the dismounting entity
  • mounttype: The type of entity that is mounted
  • mountid: The UUID of the mounted entity

spawner_spawn

This event is called when a spawner spawns an entity.

Prefilters

  • type: String Match

Event Data

  • type: The type of entity that is spawning
  • id: The UUID of the spawning entity
  • location: The location the entity spawned
  • spawner: The location of the spawner that spawned the entity
Last Successful Artifacts
chspigot-2.0.8.jar33.92 KiB view