Advertisement
FrostedWeFall

Core

Oct 16th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #---------------------------------------------------#
  2. # #
  3. # Custom Death Messages #
  4. # #
  5. # Created by Fake / CraftageSetups #
  6. # #
  7. #---------------------------------------------------#
  8.  
  9. #---------------------------------------------------#
  10. # #
  11. # Main Options - Edit Below! #
  12. # #
  13. # prefix = &8[&bFactions&3X&8] #
  14. # main-color = &b #
  15. # secondary-color = &3 #
  16. # #
  17. #---------------------------------------------------#
  18. options:
  19. heart: ā¤
  20. prefix: &8[&bFactions&3X&8]
  21. main-color: &d
  22. secondary-color: &f
  23.  
  24.  
  25. #---------------------------------------------------#
  26. # #
  27. # Skript - Do not touch! #
  28. # #
  29. #---------------------------------------------------#
  30.  
  31. on death:
  32.  
  33. if attacker is a player:
  34. if projectile is set:
  35. set the death message to "{@prefix} {@main-color}%victim% {@secondary-color}was shot by {@main-color}%attacker%{@secondary-color}! {@main-color}%attacker's health% {@heart} {@secondary-color}Left!"
  36. else:
  37. set the death message to "{@prefix} {@main-color}%victim% {@secondary-color}was killed by {@main-color}%attacker%{@secondary-color}! {@main-color}%attacker's health% {@heart} {@secondary-color}Left!"
  38.  
  39. if attacker is not a player:
  40. if attacker is set:
  41. set the death message to "{@prefix} {@main-color}%victim% {@secondary-color}was killed by {@main-color}%attacker%{@secondary-color}! {@main-color}%attacker's health% {@heart} {@secondary-color}Left!"
  42.  
  43. if damage was caused by potion:
  44. set the death message to "{@prefix} {@main-color}%victim% {@secondary-color}was killed by magic."#
  45.  
  46. else:
  47. set the death message to "{@prefix} {@main-color}%victim% {@secondary-color}was killed by {@main-color}%attacker%{@secondary-color}! {@main-color}%attacker's health% {@heart} {@secondary-color}Left!"
  48.  
  49.  
  50. command /freeze [<player>]:
  51.  
  52. permission: freezer.freeze
  53.  
  54. trigger:
  55.  
  56. if arg 1 is not set:
  57.  
  58. send "&4Error >> &cdo /freeze (player)"
  59.  
  60. if arg 1 is set:
  61.  
  62. set {freeze.move.%arg-1%} to true
  63.  
  64. send "&a&o%arg-1% has been frozen"
  65.  
  66. broadcast "&7&4%arg-1% &7has been frozen by &4%player% &7for hacking, &4do not logout!"
  67. message "&4You were frozen by %player% for hacking, do not logout or you will be permanently banned %newline%. You can admit for a shorter ban or accept a screenshare! %newline% &4Join our discord and join Requesting Staff if you wish to do a screenshare and prove your innocence! %newline% &4Here is the discord link! -> https://discord.gg/A59nAy2 <- %newline%" to arg 1
  68.  
  69. command /unfreeze [<player>]:
  70.  
  71. permission: freezer.freeze
  72.  
  73. trigger:
  74.  
  75. if arg 1 is not set:
  76.  
  77. send "&4Error >> &cdo /unfreeze (player)"
  78.  
  79. if arg 1 is set:
  80.  
  81. set {freeze.move.%arg-1%} to false
  82.  
  83. send "&a&o%arg-1% has been unfrozen"
  84. broadcast "&7&a%arg-1% &7has been unfrozen by &a%player%!"
  85. message "&2You were unfrozen by %player%! Sorry about that. Have a nice day &cā¤" to arg 1
  86.  
  87.  
  88. on any movement:
  89.  
  90. if {freeze.move.%player%} is true:
  91.  
  92. cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement