Advertisement
Guest User

Untitled

a guest
Aug 11th, 2017
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. # Skellett the addon with the beast name!
  2. # By LimeGlass
  3.  
  4. #Custom events! I'm proud to release CustomEvents in Skellett. It's not like functions from Skript or custom events from MundoSk.
  5. #This is Skellett Custom Events! Here you can make ANY event you possiblly want!
  6. #You can grab and make ANY event that Spigot or any of your plugins contain.
  7. #Before I get into explaining it, I just want to say watch your syntax. If any syntax matches or overrides another syntax. Skript will throw an error.
  8. #Either that other addon's event will break or skript will break the event of both Skellett and that other addon.
  9.  
  10. #Ok now getting into the tutorial section. Which isn't too complex.
  11. #The number of events must be set to anything higher than 0. It can't be 0 itself.
  12. #The event location has to be the EXACT location of your event, or else Skellett won't find the event.
  13. #The syntax is where the portion you use in your script. The first example below would be:
  14. #
  15. #On hanging entity:
  16. # Broadcast "%event-entity%"
  17. #
  18. #Keep in mind that skript will only automatically pickup event types such as: cancel the event, event-entity, event-string, event-player or event-location etc. If available.
  19. #I might make custom expressions later but for right now, you can enjoy events.
  20. #
  21. #Again I can't stress this enough. If an event is already registered or your syntax matches another. The chances of it breaking are very high. So just be careful when doing so.
  22. #
  23. #You can enable or disable your custom events here
  24. CustomEvents: true
  25. # Unleash the power, and stride onwards!
  26. CustomEventSetup:
  27. NumberOfEvents: 4
  28. 1:
  29. Event: "org.bukkit.event.hanging.HangingBreakEvent"
  30. Syntax: "[on] (hang[ing] [entity]|painting|item[ ]frame) (break|destroy)"
  31. 2:
  32. Event: "org.bukkit.event.player.PlayerEditBookEvent"
  33. Syntax: "[on] skellett player edit book"
  34. 3:
  35. Event: "de.myzelyam.api.vanish.PlayerHideEvent"
  36. Syntax: "[on] vanish"
  37. 4:
  38. Event: "de.myzelyam.api.vanish.PlayerShowEvent"
  39. Syntax: "[on] unvanish"
  40. #If you have LibsDisguises installed, feel free to enable this event. It's disabled because some people won't have LibsDisguises installed.
  41. # 3:
  42. # Event: "me.libraryaddict.disguise.events.DisguiseEvent"
  43. # Syntax: "[on] [[Libs]Disguises] [player] disguise"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement