Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SpawnerPreSpawnEvent #917

Closed
PhanaticD opened this issue Oct 14, 2017 · 3 comments
Closed

Add SpawnerPreSpawnEvent #917

PhanaticD opened this issue Oct 14, 2017 · 3 comments
Labels
type: feature Request for a new Feature.

Comments

@PhanaticD
Copy link

id like to request this in main paper: TacoSpigot/TacoSpigot@49c277e

actually maybe it should be added for all mob spawns? I think some plugins could greatly reduce ram and resource useage if the mob wasnt loaded first then removed

@LogGits
Copy link

LogGits commented Oct 20, 2017

If this is added could an isNatural boolean be implemented to determine if a mob has spawned in the wild or from a spawner/egg.

@zachbr zachbr added the type: feature Request for a new Feature. label Oct 31, 2017
@zachbr zachbr changed the title feature - spawner pre-mob spawn Add SpawnerPreSpawnEvent Oct 31, 2017
@aikar aikar closed this as completed in 6a5948b Jan 14, 2018
@aikar
Copy link
Member

aikar commented Jan 14, 2018

Per the event documentation, only firing for NATURAL and SPAWNER, since this is primarily performance oriented and these are the only 2 cases that it will matter for.

@aikar
Copy link
Member

aikar commented Jan 14, 2018

You may also be interested in 6068eb1

aikar added a commit to aikar/Bukkit that referenced this issue Mar 1, 2018
Adds an event to fire before an Entity is created, so that plugins that need to cancel
CreatureSpawnEvent can do so from this event instead.

Cancelling CreatureSpawnEvent rapidly causes a lot of garbage collection and CPU waste
as it's done after the Entity object has been fully created.

Mob Limiting plugins and blanket "ban this type of monster" plugins should use this event
instead and save a lot of server resources.

See: PaperMC/Paper#917
aikar added a commit to aikar/Bukkit that referenced this issue Jul 17, 2018
Adds an event to fire before an Entity is created, so that plugins that need to cancel
CreatureSpawnEvent can do so from this event instead.

Cancelling CreatureSpawnEvent rapidly causes a lot of garbage collection and CPU waste
as it's done after the Entity object has been fully created.

Mob Limiting plugins and blanket "ban this type of monster" plugins should use this event
instead and save a lot of server resources.

See: PaperMC/Paper#917
aikar added a commit to aikar/Bukkit that referenced this issue Aug 1, 2018
Adds an event to fire before an Entity is created, so that plugins that need to cancel
CreatureSpawnEvent can do so from this event instead.

Cancelling CreatureSpawnEvent rapidly causes a lot of garbage collection and CPU waste
as it's done after the Entity object has been fully created.

Mob Limiting plugins and blanket "ban this type of monster" plugins should use this event
instead and save a lot of server resources.

See: PaperMC/Paper#917
aikar added a commit to aikar/Bukkit that referenced this issue Aug 6, 2018
Adds an event to fire before an Entity is created, so that plugins that need to cancel
CreatureSpawnEvent can do so from this event instead.

Cancelling CreatureSpawnEvent rapidly causes a lot of garbage collection and CPU waste
as it's done after the Entity object has been fully created.

Mob Limiting plugins and blanket "ban this type of monster" plugins should use this event
instead and save a lot of server resources.

See: PaperMC/Paper#917
aikar added a commit to aikar/Bukkit that referenced this issue Aug 12, 2018
Adds an event to fire before an Entity is created, so that plugins that need to cancel
CreatureSpawnEvent can do so from this event instead.

Cancelling CreatureSpawnEvent rapidly causes a lot of garbage collection and CPU waste
as it's done after the Entity object has been fully created.

Mob Limiting plugins and blanket "ban this type of monster" plugins should use this event
instead and save a lot of server resources.

See: PaperMC/Paper#917
aikar added a commit to aikar/Bukkit that referenced this issue Aug 12, 2018
Adds an event to fire before an Entity is created, so that plugins that need to cancel
CreatureSpawnEvent can do so from this event instead.

Cancelling CreatureSpawnEvent rapidly causes a lot of garbage collection and CPU waste
as it's done after the Entity object has been fully created.

Mob Limiting plugins and blanket "ban this type of monster" plugins should use this event
instead and save a lot of server resources.

See: PaperMC/Paper#917
aikar added a commit to aikar/Bukkit that referenced this issue Oct 7, 2018
Adds an event to fire before an Entity is created, so that plugins that need to cancel
CreatureSpawnEvent can do so from this event instead.

Cancelling CreatureSpawnEvent rapidly causes a lot of garbage collection and CPU waste
as it's done after the Entity object has been fully created.

Mob Limiting plugins and blanket "ban this type of monster" plugins should use this event
instead and save a lot of server resources.

See: PaperMC/Paper#917
electronicboy pushed a commit to electronicboy/Paper-API that referenced this issue Feb 4, 2019
Adds an event to fire before an Entity is created, so that plugins that need to cancel
CreatureSpawnEvent can do so from this event instead.

Cancelling CreatureSpawnEvent rapidly causes a lot of garbage collection and CPU waste
as it's done after the Entity object has been fully created.

Mob Limiting plugins and blanket "ban this type of monster" plugins should use this event
instead and save a lot of server resources.

See: PaperMC/Paper#917
electronicboy pushed a commit to electronicboy/Paper-API that referenced this issue Feb 4, 2019
Adds an event to fire before an Entity is created, so that plugins that need to cancel
CreatureSpawnEvent can do so from this event instead.

Cancelling CreatureSpawnEvent rapidly causes a lot of garbage collection and CPU waste
as it's done after the Entity object has been fully created.

Mob Limiting plugins and blanket "ban this type of monster" plugins should use this event
instead and save a lot of server resources.

See: PaperMC/Paper#917
cakoyo pushed a commit to Akarin-project/Akarin that referenced this issue Mar 4, 2019
Adds an event to fire before an Entity is created, so that plugins that need to cancel
CreatureSpawnEvent can do so from this event instead.

Cancelling CreatureSpawnEvent rapidly causes a lot of garbage collection and CPU waste
as it's done after the Entity object has been fully created.

Mob Limiting plugins and blanket "ban this type of monster" plugins should use this event
instead and save a lot of server resources.

See: PaperMC/Paper#917
electronicboy pushed a commit to electronicboy/Paper-API that referenced this issue Apr 7, 2019
Adds an event to fire before an Entity is created, so that plugins that need to cancel
CreatureSpawnEvent can do so from this event instead.

Cancelling CreatureSpawnEvent rapidly causes a lot of garbage collection and CPU waste
as it's done after the Entity object has been fully created.

Mob Limiting plugins and blanket "ban this type of monster" plugins should use this event
instead and save a lot of server resources.

See: PaperMC/Paper#917
electronicboy pushed a commit to electronicboy/Paper-API that referenced this issue May 27, 2019
Adds an event to fire before an Entity is created, so that plugins that need to cancel
CreatureSpawnEvent can do so from this event instead.

Cancelling CreatureSpawnEvent rapidly causes a lot of garbage collection and CPU waste
as it's done after the Entity object has been fully created.

Mob Limiting plugins and blanket "ban this type of monster" plugins should use this event
instead and save a lot of server resources.

See: PaperMC/Paper#917
aikar added a commit to aikar/Bukkit that referenced this issue Dec 31, 2020
Adds an event to fire before an Entity is created, so that plugins that need to cancel
CreatureSpawnEvent can do so from this event instead.

Cancelling CreatureSpawnEvent rapidly causes a lot of garbage collection and CPU waste
as it's done after the Entity object has been fully created.

Mob Limiting plugins and blanket "ban this type of monster" plugins should use this event
instead and save a lot of server resources.

See: PaperMC/Paper#917
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature Request for a new Feature.
Projects
None yet
Development

No branches or pull requests

4 participants