Solved Make dispensers not work with spawn eggs

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

S1mSkript

Member
Apr 11, 2022
4
0
1
Howdy, I have ran into an issue where players on my server are able to use dispensers to spawn spawn eggs, I was wondering if there a way to make dispensers not spawn them. Thank you!
 
I do not think so. There is a worldgaurd flag though that disables this. if you would like to disable dispensers entirely then this will be sufficent

code_language.skript:
on place of dispenser:
  if player does not have permission "ban.dispenser":
    cancel event
    send "&c&lERROR&7 This functionality is banned"
 
Thank you! I found a guy with a script that wanted to disable fire charges and just replaced the fire charge with spawn eggs :emoji_slight_smile: