Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. # Set this to the world or worlds that you wish to use this skript in #
  2. PunishmentCommand1: kill %player%
  3. PunishmentCommand2: eco take %player% 1000
  4. # The punishment command a player will receieve after logging out in combat. eg /kill %player%
  5. # NEW #
  6. CombatTimer: 19 # Default #
  7. # The amount of time set, please minus 1 away from the desired amount. e.g if you want 20 seconds put 19. #
  8.  
  9.  
  10.  
  11. # Thats it, you're done with the config :D
  12. # More Updates Coming Soon #
  13.  
  14.  
  15.  
  16.  
  17.  
  18. on damage:
  19. if victim is a player:
  20. if attacker is a player:
  21. if {anticombatlog.%attacker%} = 0:
  22. message "{@Prefix} {@ColorScheme1}You have been combat tagged, do not log out!" to victim
  23. message "{@Prefix} {@ColorScheme1}You have tagged %victim%, do not log out!" to attacker
  24. set {anticombatlog.%attacker%} to 1
  25. every second in {@SelectedWorld}:
  26. loop all players:
  27. if {anticombatlog.%loop-player%} > 0:
  28. add 1 to {anticombatlog.%loop-player%}
  29. loop all players:
  30. if {anticombatlog.%loop-player%} > {@CombatTimer}:
  31. set {anticombatlog.%loop-player%} to 0
  32. message "{@Prefix} {@ColorScheme1}You can now log out!" to loop-player
  33.  
  34. command /anticombatlog [<text>]:
  35. permission: anticombatlog.reload
  36. permission message: {@NoPermissionMessage}
  37. trigger:
  38. if arg 1 is "reload":
  39. broadcast "&7AntiCombatLog {@Version} is reloading.."
  40. make player execute command "/sk reload {@SkriptName}.sk"
  41. wait 4 seconds
  42. broadcast "&bAntiCombatLog {@Version} has succesfully reloaded!"
  43. broadcast "&bPlease report any issues on the Spigot page!"
  44. else:
  45. send "&9Usage /anticombatlog reload"
  46.  
  47. command /ct:
  48. trigger:
  49. send "{@ColorScheme1}The server combat log timer is &9{@CombatTimer} seconds" to player
  50.  
  51.  
  52. # Added in V0.0.4 HOTFIX 2 #
  53.  
  54. on join:
  55. if {anticombatlog.%player%} > 0:
  56. message "{@Prefix} {@ColorScheme1}You logged out in combat!"
  57. make console execute command "{@PunishmentCommand1}"
  58. make console execute command "{@PunishmentCommand2}"
  59.  
  60. # Added in V0.0.4 HOTFIX 3 #
  61.  
  62. on command "tpa":
  63. if {anticombatlog.%player%} > 0:
  64. cancel event
  65. message "{@Prefix} {@ColorScheme1}You may not teleport whilst in combat!"
  66.  
  67. on command "tp":
  68. if {anticombatlog.%player%} > 0:
  69. cancel event
  70. message "{@Prefix} {@ColorScheme1}You may not teleport whilst in combat!"
  71.  
  72. on command "spawn":
  73. if {anticombatlog.%player%} > 0:
  74. cancel event
  75. message "{@Prefix} {@ColorScheme1}You may not teleport to spawn whilst in combat!"
  76.  
  77. on command "home":
  78. if {anticombatlog.%player%} > 0:
  79. cancel event
  80. message "{@Prefix} {@ColorScheme1}You may not teleport whilst in combat!"
  81.  
  82. # How to add your own command to be blocked whilst a player is in combat #
  83. #on command "<command name without backslash>":
  84. # if {anticombatlog.%player%} > 0:
  85. # cancel event
  86. # message "{@Prefix} {@ColorScheme1}<insert deny message here>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement