Oxalist

Survival

Apr 4th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. options:
  2. # CONFIG
  3. PermissionActivated: true #Do you want to use a permission? So set it to true or to false if you don't want it
  4. Permission: coloredsignssk.use # Here you can set the permission when this PermissionActivated is set to tru
  5.  
  6.  
  7. ColorReplacer: "&"
  8.  
  9. on sign change:
  10. if {@PermissionActivated} is true:
  11. if player has permission "{@Permission}":
  12. replace all {@ColorReplacer} with "§" in line 1 of event-block
  13. replace all {@ColorReplacer} with "§" in line 2 of event-block
  14. replace all {@ColorReplacer} with "§" in line 3 of event-block
  15. replace all {@ColorReplacer} with "§" in line 4 of event-block
  16. else:
  17. replace all {@ColorReplacer} with "§" in line 1 of event-block
  18. replace all {@ColorReplacer} with "§" in line 2 of event-block
  19. replace all {@ColorReplacer} with "§" in line 3 of event-block
  20. replace all {@ColorReplacer} with "§" in line 4 of event-block
  21.  
  22. variables:
  23. {kills::%player%} = 0
  24. {deaths::%player%} = 0
  25.  
  26. on death:
  27. if victim is a player:
  28. if attacker is a player:
  29. broadcast "&e(Kill) &f%victim% &7has been killed by &f%attacker%"
  30. add 1 to {kills::%attacker%}
  31. add 1 to {deaths::%victim%}
  32. if victim is a player:
  33. if damage was caused by fall:
  34. broadcast "&e(Kill) &f%victim% &7has died from fall damage"
  35. add 1 to {deaths::%victim%}
  36.  
  37. on rightclick on sign:
  38. if line 2 of event-block is "&a&LDisposal":
  39. set line 2 of event-block to "&a&lDisposal"
  40. set line 3 of event-block to "&8(Right-Click)"
  41. open chest with 6 row named "&eTrash &7(Drop items in this box)" to player
  42.  
  43. on break:
  44. if "%region at player%" contains "survivalsafezone":
  45. cancel event
  46. send "&e(Anti-Grief) &7You cannot break in the safezone"
  47.  
  48. on place:
  49. if "%region at player%" contains "survivalsafezone":
  50. cancel event
  51. send "&e(Anti-Grief) &7You cannot place in the safezone"
  52.  
  53. on damage:
  54. if "%region at victim%" contains "survivalsafezone":
  55. cancel event
  56. send "&e(Anti-Grief) &7You cannot pvp in the safezone" to attacker
Advertisement
Add Comment
Please, Sign In to add comment