how to detect when a plugin calls Block#setType() or setTypeId, etc

Discussion in 'Plugin Development' started by reghzyTheR, Jun 1, 2021.

  1. Offline

    reghzyTheR

    if i call the Block#setType or setTypeId or any method like that, is it possible to detect (via an event maybe) when that method is called?

    the only other alternative i have is to simply just check if that block's type is air (or an ID that was unexpected), but that would require registering a scheduler which is just more work tbh

    maybe like some sort of BlockChangedEvent
     
  2. Online

    KarimAKL

    davidclue and reghzyTheR like this.

Share This Page