Skip to content

Commit

Permalink
improved switch meta in events
Browse files Browse the repository at this point in the history
also typo fix for bungee in debug logs
  • Loading branch information
mcmonkey4eva committed Nov 11, 2019
1 parent b823a64 commit e12f98a
Show file tree
Hide file tree
Showing 130 changed files with 146 additions and 147 deletions.
Expand Up @@ -18,7 +18,7 @@ public class PlayerSpectatesEntityScriptEvent extends BukkitScriptEvent implemen
//
// @Regex ^on player spectates [^\s]+$
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Plugin Paper
//
Expand Down
Expand Up @@ -18,7 +18,7 @@ public class PlayerStopsSpectatingScriptEvent extends BukkitScriptEvent implemen
//
// @Regex ^on player stops spectating( [^\s]+)?$
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Plugin Paper
//
Expand Down
Expand Up @@ -21,7 +21,7 @@ public class TNTPrimesScriptEvent extends BukkitScriptEvent implements Listener
//
// @Regex ^on tnt primes$
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Plugin Paper
//
Expand Down
Expand Up @@ -24,7 +24,7 @@ public class BlockBuiltScriptEvent extends BukkitScriptEvent implements Listener
//
// @Group Block
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -19,7 +19,7 @@ public class BlockBurnsScriptEvent extends BukkitScriptEvent implements Listener
//
// @Group Block
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -25,7 +25,7 @@ public class BlockDispensesScriptEvent extends BukkitScriptEvent implements List
//
// @Group Block
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -19,7 +19,7 @@ public class BlockFadesScriptEvent extends BukkitScriptEvent implements Listener
//
// @Group Block
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -20,7 +20,7 @@ public class BlockFallsScriptEvent extends BukkitScriptEvent implements Listener
//
// @Group Block
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -19,7 +19,7 @@ public class BlockFormsScriptEvent extends BukkitScriptEvent implements Listener
//
// @Group Block
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -19,7 +19,7 @@ public class BlockGrowsScriptEvent extends BukkitScriptEvent implements Listener
//
// @Group Block
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -21,8 +21,8 @@ public class BlockIgnitesScriptEvent extends BukkitScriptEvent implements Listen
//
// @Group Block
//
// @Switch in <area>
// @Switch cause <cause>
// @Switch in:<area> to only process the event if it occurred within a specified area.
// @Switch cause:<cause> to only process the event when it came from a specified cause.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -21,7 +21,7 @@ public class BlockPhysicsScriptEvent extends BukkitScriptEvent implements Listen
//
// @Group Block
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Warning This event may fire very rapidly.
//
Expand Down
Expand Up @@ -19,7 +19,7 @@ public class BlockSpreadsScriptEvent extends BukkitScriptEvent implements Listen
//
// @Group Block
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -18,7 +18,7 @@ public class BrewsScriptEvent extends BukkitScriptEvent implements Listener {
//
// @Group Block
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -21,8 +21,8 @@ public class CauldronLevelChangeScriptEvent extends BukkitScriptEvent implements
//
// @Group Block
//
// @Switch in <area>
// @Switch cause <cause>
// @Switch in:<area> to only process the event if it occurred within a specified area.
// @Switch cause:<cause> to only process the event when it came from a specified cause.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -20,7 +20,7 @@ public class FurnaceBurnsItemScriptEvent extends BukkitScriptEvent implements Li
//
// @Group Block
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -21,7 +21,7 @@ public class FurnaceSmeltsItemScriptEvent extends BukkitScriptEvent implements L
//
// @Group Block
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Triggers when a furnace smelts an item.
//
Expand Down
Expand Up @@ -17,7 +17,7 @@ public class LeafDecaysScriptEvent extends BukkitScriptEvent implements Listener
//
// @Regex ^on [^\s]+ decay$
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -21,7 +21,7 @@ public class LiquidSpreadScriptEvent extends BukkitScriptEvent implements Listen
//
// @Group Block
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -22,7 +22,7 @@ public class PistonExtendsScriptEvent extends BukkitScriptEvent implements Liste
//
// @Group Block
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -22,7 +22,7 @@ public class PistonRetractsScriptEvent extends BukkitScriptEvent implements List
//
// @Group Block
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -18,7 +18,7 @@ public class RedstoneScriptEvent extends BukkitScriptEvent implements Listener {
//
// @Group Block
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Warning This event fires very very rapidly!
//
Expand Down
Expand Up @@ -18,7 +18,7 @@ public class CreeperPoweredScriptEvent extends BukkitScriptEvent implements List
//
// @Regex ^on creeper powered( because [^\s]+)?$
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -22,9 +22,9 @@ public class DragonPhaseChangeScriptEvent extends BukkitScriptEvent implements L
//
// @Regex ^on [^\s]+ changes phase$
//
// @Switch in <area>
// @Switch from <phase>
// @Switch to <phase>
// @Switch in:<area> to only process the event if it occurred within a specified area.
// @Switch from:<phase> to only process the event if the dragon was previously in the specified phase.
// @Switch to:<phase> to only process the event if the dragon is changing to the specified phase.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -21,7 +21,7 @@ public class EntityAirLevelChangeScriptEvent extends BukkitScriptEvent implement
//
// @Regex ^on [^\s]+ changes air level$
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -25,7 +25,7 @@ public class EntityBreaksHangingScriptEvent extends BukkitScriptEvent implements
//
// @Regex ^on [^\s]+ breaks [^\s]+( because [^\s]+)?$
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -23,7 +23,7 @@ public class EntityBreedScriptEvent extends BukkitScriptEvent implements Listene
//
// @Regex ^on [^\s]+ breeds$
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -26,7 +26,7 @@ public class EntityChangesBlockScriptEvent extends BukkitScriptEvent implements
//
// @Regex ^on [^\s]+ changes [^\s]+( into [^\s]+)?$
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -26,7 +26,7 @@ public class EntityCombustsScriptEvent extends BukkitScriptEvent implements List
//
// @Regex ^on [^\s]+ combusts$
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -22,7 +22,7 @@ public class EntityCreatePortalScriptEvent extends BukkitScriptEvent implements
//
// @Regex ^on [^\s]+ creates portal$
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -39,9 +39,9 @@ public class EntityDamagedScriptEvent extends BukkitScriptEvent implements Liste
//
// @Regex ^on [^\s]+ ((damages [^\s]+)|damaged( by [^\s]+)?)$
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Switch with <item>
// @Switch with:<item> to only process the event when the item used to cause damage (in the damager's hand) is a specified item.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -38,8 +38,8 @@ public class EntityDeathScriptEvent extends BukkitScriptEvent implements Listene
//
// @Regex ^on [^\s]+ (death|dies)$
//
// @Switch in <area>
// @Switch by <entity type>
// @Switch in:<area> to only process the event if it occurred within a specified area.
// @Switch by:<entity type> to only process the event if the killer is of a specified entity type.
//
// @Triggers when an entity dies. Note that this fires *after* the entity dies, and thus some data may be lost from the entity.
// The death cannot be cancelled, only the death message (for players).
Expand Down
Expand Up @@ -18,11 +18,10 @@ public class EntityDespawnScriptEvent extends BukkitScriptEvent {
//
// @Regex ^on [^\s]+ despawns$
//
// @Switch in <area>
//
// @Warning this event fires very rapidly.
//
// @Switch cause death|chunk_unload|other
// @Switch in:<area> to only process the event if it occurred within a specified area.
// @Switch cause:<cause> to only process the event when it came from a specified cause.
//
// @Triggers when an entity despawns permanently from the world. May fire repeatedly for one entity.
//
Expand Down
Expand Up @@ -21,7 +21,7 @@ public class EntityEntersPortalScriptEvent extends BukkitScriptEvent implements
//
// @Regex ^on [^\s]+ enters portal$
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Triggers when an entity enters a portal.
//
Expand Down
Expand Up @@ -22,7 +22,7 @@ public class EntityEntersVehicleScriptEvent extends BukkitScriptEvent implements
//
// @Regex ^on [^\s]+ enters [^\s]+$
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -21,7 +21,7 @@ public class EntityExitsPortalScriptEvent extends BukkitScriptEvent implements L
//
// @Regex ^on [^\s]+ exits portal$
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Triggers when an entity exits a portal.
//
Expand Down
Expand Up @@ -22,7 +22,7 @@ public class EntityExitsVehicleScriptEvent extends BukkitScriptEvent implements
//
// @Regex ^on [^\s]+ exits [^\s]+$
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -26,7 +26,7 @@ public class EntityExplodesScriptEvent extends BukkitScriptEvent implements List
//
// @Regex ^on [^\s]+ explodes$
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -21,7 +21,7 @@ public class EntityExplosionPrimesScriptEvent extends BukkitScriptEvent implemen
//
// @Regex ^on [^\s]+ explosion primes$
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -21,7 +21,7 @@ public class EntityFoodLevelChangeScriptEvent extends BukkitScriptEvent implemen
//
// @Regex ^on [^\s]+ changes food level$
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -24,7 +24,7 @@ public class EntityFormsBlockScriptEvent extends BukkitScriptEvent implements Li
//
// @Regex ^on [^\s]+ forms [^\s]+$
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down
Expand Up @@ -22,7 +22,7 @@ public class EntityGlideScriptEvent extends BukkitScriptEvent implements Listene
//
// @Regex ^on player (toggles|starts|stops) gliding$
//
// @Switch in <area>
// @Switch in:<area> to only process the event if it occurred within a specified area.
//
// @Cancellable true
//
Expand Down

0 comments on commit e12f98a

Please sign in to comment.