Skip to content

Instantly share code, notes, and snippets.

@RoboMWM
Last active February 12, 2016 07:39
Show Gist options
  • Save RoboMWM/3c69e1ed0083920e3e0f to your computer and use it in GitHub Desktop.
Save RoboMWM/3c69e1ed0083920e3e0f to your computer and use it in GitHub Desktop.
For some reason EventDebug prints the entitydamagebyblockevent three times.
[00:25:58] [Server thread/INFO]: cancelled by ProjectKorra v1.8.0 BETA 9
[00:25:58] [Server thread/INFO]: [EventDebug] Event fired: EntityDamageByBlockEvent
isCancelled: true
getDamage: 1.0
getDamage: 1
getFinalDamage: 1.0
getCause: BLOCK_EXPLOSION
getEntity: CraftChicken
getEntityType: CHICKEN
[00:25:58] [Server thread/INFO]: [EventDebug] Event fired: EntityDamageByBlockEvent
isCancelled: true
getDamage: 1.0
getDamage: 1
getFinalDamage: 1.0
getCause: BLOCK_EXPLOSION
getEntity: CraftChicken
getEntityType: CHICKEN
[00:25:58] [Server thread/INFO]: [EventDebug] Event fired: EntityDamageByBlockEvent
isCancelled: true
getDamage: 1.0
getDamage: 1
getFinalDamage: 1.0
getCause: BLOCK_EXPLOSION
getEntity: CraftChicken
getEntityType: CHICKEN
[00:25:58] [Server thread/INFO]: cancelled by ProjectKorra v1.8.0 BETA 9
[00:25:58] [Server thread/INFO]: [EventDebug] Event fired: EntityDamageByBlockEvent
isCancelled: true
getDamage: 1.5
getDamage: 2
getFinalDamage: 1.3200000524520874
getCause: BLOCK_EXPLOSION
getEntity: RoboMWM
getEntityType: PLAYER
[00:25:58] [Server thread/INFO]: [EventDebug] Event fired: EntityDamageByBlockEvent
isCancelled: true
getDamage: 1.5
getDamage: 2
getFinalDamage: 1.3200000524520874
getCause: BLOCK_EXPLOSION
getEntity: RoboMWM
getEntityType: PLAYER
[00:25:58] [Server thread/INFO]: [EventDebug] Event fired: EntityDamageByBlockEvent
isCancelled: true
getDamage: 1.5
getDamage: 2
getFinalDamage: 1.3200000524520874
getCause: BLOCK_EXPLOSION
getEntity: RoboMWM
getEntityType: PLAYER
[00:25:58] [Server thread/INFO]: [EventDebug] Event fired: BlockExplodeEvent
isCancelled: false
getYield: 0.3
getBlock: SNOW at Location{world=CraftWorld{name=world},x=67.0,y=110.0,z=106.0,pitch=0.0,yaw=0.0}
This is how everything works (on my server) when ProjectKorra is disabled:
[01:29:56] [Server thread/INFO]: [EventDebug] Event fired: CreeperPowerEvent
isCancelled: false
getEntity: CraftCreeper
getEntity: CraftCreeper
getCause: SET_ON
getEntityType: CREEPER
[01:29:57] [Server thread/INFO]: [EventDebug] Event fired: PlayerInteractEvent
getAction: RIGHT_CLICK_AIR
isBlockInHand: false
getItem: BOW(10) x64
isCancelled: true
getMaterial: BOW
getBlockFace: SOUTH
getPlayer: RoboMWM
[01:29:57] [Server thread/INFO]: [EventDebug] Event fired: EntityShootBowEvent
getForce: 0.41666666
getBow: BOW(10) x64
isCancelled: false
getEntity: RoboMWM
getEntity: RoboMWM
getProjectile: CraftArrow
getEntityType: PLAYER
[01:29:57] [Server thread/INFO]: [EventDebug] Event fired: ProjectileLaunchEvent
isCancelled: false
getEntity: CraftArrow
getEntity: CraftArrow
getEntityType: ARROW
[01:29:57] [Server thread/INFO]: [EventDebug] Event fired: PlayerItemDamageEvent
getItem: BOW(10) x64
isCancelled: false
getDamage: 1
getPlayer: RoboMWM
[01:29:57] [Server thread/INFO]: [EventDebug] Event fired: ProjectileHitEvent
getEntity: CraftArrow
getEntity: CraftArrow
getEntityType: ARROW
[01:29:57] [Server thread/INFO]: [EventDebug] Event fired: EntityDamageByBlockEvent
isCancelled: false
getDamage: 1.5
getDamage: 2
getFinalDamage: 1.5
getCause: BLOCK_EXPLOSION
getEntity: RoboMWM
getEntityType: PLAYER
[01:29:57] [Server thread/INFO]: [EventDebug] Event fired: EntityDamageByBlockEvent
isCancelled: false
getDamage: 1.5
getDamage: 2
getFinalDamage: 1.5
getCause: BLOCK_EXPLOSION
getEntity: RoboMWM
getEntityType: PLAYER
[01:29:57] [Server thread/INFO]: [EventDebug] Event fired: EntityDamageByBlockEvent
isCancelled: false
getDamage: 1.5
getDamage: 2
getFinalDamage: 1.5
getCause: BLOCK_EXPLOSION
getEntity: RoboMWM
getEntityType: PLAYER
[01:29:57] [Server thread/INFO]: [EventDebug] Event fired: BlockExplodeEvent
isCancelled: false
getYield: 0.3
getBlock: SNOW at Location{world=CraftWorld{name=world},x=65.0,y=109.0,z=107.0,pitch=0.0,yaw=0.0}
[01:29:57] [Server thread/INFO]: [EventDebug] Event fired: EntityDamageByEntityEvent
getDamager: CraftArrow
isCancelled: false
getDamage: 3.0
getDamage: 3
getFinalDamage: 3.0
getCause: PROJECTILE
getEntity: CraftCreeper
getEntityType: CREEPER
[01:29:57] [Server thread/INFO]: [EventDebug] Event fired: EntityDamageByEntityEvent
getDamager: CraftArrow
isCancelled: false
getDamage: 3.0
getDamage: 3
getFinalDamage: 3.0
getCause: PROJECTILE
getEntity: CraftCreeper
getEntityType: CREEPER
[01:29:57] [Server thread/INFO]: [EventDebug] Event fired: EntityDamageByEntityEvent
getDamager: CraftArrow
isCancelled: false
getDamage: 3.0
getDamage: 3
getFinalDamage: 3.0
getCause: PROJECTILE
getEntity: CraftCreeper
getEntityType: CREEPER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment