From 9c9c9763aeb1ab303793937f0c20eed5ee283f11 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 9 May 2021 16:32:25 +1000 Subject: [PATCH] SPIGOT-6200: Add COMMAND to the CreateSpawnEvent.SpawnReason enum By: Julian van den Berkmortel --- .../main/java/org/bukkit/event/entity/CreatureSpawnEvent.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java index 7a447dac88..153fcde1cb 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java @@ -177,6 +177,10 @@ public class CreatureSpawnEvent extends EntitySpawnEvent { * When a piglin is converted to a zombified piglib. */ PIGLIN_ZOMBIFIED, + /** + * When a creature is spawned by the "/summon" command + */ + COMMAND, /** * When a creature is spawned by plugins */