Advertisement
CREAMPAN0408

Untitled

Mar 29th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. Options:
  2. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  3. #Log and Permission
  4. perm: RPG.admin
  5. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  6. #Death Message
  7. pvpdeathmessage: &8[&4Death&8] &c%victim% &9≪ &6%attacker% &8| &f%name of attacker's tool%
  8. notooldeathmessage: &8[&4Death&8] &c%victim% &9≪ &6%attacker%
  9. pvedeathmessage: &8[&4Death&8] &c%victim% &9≪ &8[&f%attacker's name%&8&l]
  10. nonamepvedeathmessage: &8[&4Death&8] &c%victim% &9≪ &8[&f%attacker%&8]
  11. otherdeathmessage: &8[&4Death&8] &c%victim%
  12. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  13. On death of player:
  14. attacker is a player:
  15. if name of attacker's tool is set:
  16. set the death message to "{@pvpdeathmessage}"
  17. else:
  18. set the death message to "{@notooldeathmessage}"
  19. stop
  20. attacker is an entity:
  21. if attacker's name is set:
  22. set the death message to "{@pvedeathmessage}"
  23. else:
  24. set the death message to "{@nonamepvedeathmessage}"
  25. stop
  26. set the death message to "{@otherdeathmessage}"
  27. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  28. command /close:
  29. permission: skript.admin
  30. trigger:
  31. command "/whitelist on"
  32. loop all players:
  33. loop-player is not an op
  34. kick the loop-player due to "this server is not open to pulic"
  35. message "this server is not open to public now"
  36. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  37. command /c:
  38. trigger:
  39. give command block to player
  40. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  41. on break:
  42. player do not have permission "skript.admin"
  43. cancel event
  44.  
  45. on place:
  46. player do not have permission "skript.admin"
  47. cancel event
  48.  
  49. on explode:
  50. cancel event
  51.  
  52. on craft:
  53. player do not have permission "skript.craft"
  54. cancel event
  55. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  56. function createHolo(l: Location, t: Text, length: Timespan):
  57. create hologram "%{_t}%" at {_l} for {_length}
  58. on damage:
  59. loop blocks in radius 1 around head of victim:
  60. add location of loop-block to {_blocks::*}
  61. set {_bl} to random element of {_blocks::*}
  62. createHolo({_bl}, "&4%damage%", 25 ticks)
  63. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement