Skip to content

A CommandHelper extension the provides functions and events for Spigot-specific API

License

Notifications You must be signed in to change notification settings

PseudoKnight/CHSpigot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A CommandHelper extension the provides functions and events for Spigot-specific API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages