Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- Version: 1.0
- command /anticombatlog [<text>]:
- permission: anticombatlog.reload
- trigger:
- if arg 1 is "reload":
- broadcast "&9AntiCombatLog {@Version} is reloading.."
- make console execute command "/sk reload AntiCombatLog"
- wait 4 seconds
- broadcast "&bAntiCombatLog {@Version} has succesfully reloaded!"
- broadcast "&bPlease report any issues on the Spigot page!"
- else:
- send "&9Usage /anticombatlog reload"
- On damage:
- if victim is a player:
- if attacker is player:
- send "&9You are currently in combat, do not logout" to victim
- send "&9You combat tagged another player, do not logout" to attacker
- set {Combatlog.%attacker%} to 15
- set {Combatlog.%victim%} to 15
- every second:
- loop all players:
- if {Combatlog.%loop-player%} is greater than 0:
- remove 1 from {Combatlog.%loop-player%}
- on command "/spawn":
- if {Combatlog.%player%} is greater than 0:
- cancel event
- Message "&9You may not execute this command in combat!"
- on command "/espawn":
- if {Combatlog.%player%} is greater than 0:
- cancel event
- Message "&9You may not execute this command in combat!"
- on command "/essentials:spawn":
- if {Combatlog.%player%} is greater than 0:
- cancel event
- Message "&9You may not execute this command in combat!"
- on command "/essentials:espawn":
- if {Combatlog.%player%} is greater than 0:
- cancel event
- Message "&9You may not execute this command in combat!"
- on quit:
- if {Combatlog.%player%} is greater than 0:
- kill player
- Broadcast "&9%player% Logged out during combat and has been killed!"
Advertisement
Add Comment
Please, Sign In to add comment