Solved Using SpawnReason

Discussion in 'Spigot Plugin Development' started by yamerins, Jul 22, 2015.

  1. How would one use .getSpawnReason on a creatureSpawnEvent to cancel the event if it is spawned a certain way? I know how to check with the if statement and cancel the event (duh), but I can't seem to figure out how to match it with one of the spawning methods found on the javadocs.

    EDIT: FIXED
     
    #1 yamerins, Jul 22, 2015
    Last edited: Jul 22, 2015
  2. You should put your solution, just in case someone is having this same problem and find your thread.