Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on command "spawn":
- if {combat-tag.%player%} is set:
- cancel event
- message "&cYou cannot use this command whilst in combat."
- on command "espawn":
- if {combat-tag.%player%} is set:
- cancel event
- message "&cYou cannot use this command whilst in combat."
- on command "warp":
- if {combat-tag.%player%} is set:
- cancel event
- message "&cYou cannot use this command whilst in combat."
- on command "ewarp":
- if {combat-tag.%player%} is set:
- cancel event
- message "&cYou cannot use this command whilst in combat."
- on command "essentials:spawn":
- if {combat-tag.%player%} is set:
- cancel event
- message "&cYou cannot use this command whilst in combat."
- on command "essentials:espawn":
- if {combat-tag.%player%} is set:
- cancel event
- message "&cYou cannot use this command whilst in combat."
- on command "essentials:warp":
- if {combat-tag.%player%} is set:
- cancel event
- message "&cYou cannot use this command whilst in combat."
- on command "essentials:ewarp":
- if {combat-tag.%player%} is set:
- cancel event
- message "&cYou cannot use this command whilst in combat."
- on command "back":
- if {combat-tag.%player%} is set:
- cancel event
- message "&cYou cannot use this command whilst in combat."
- on command "eback":
- if {combat-tag.%player%} is set:
- cancel event
- message "&cYou cannot use this command whilst in combat."
- on command "essentials:back":
- if {combat-tag.%player%} is set:
- cancel event
- message "&cYou cannot use this command whilst in combat."
- on command "essentials:eback":
- if {combat-tag.%player%} is set:
- cancel event
- message "&cYou cannot use this command whilst in combat."
- on damage:
- if attacker is a player:
- if victim is a player:
- set {combat-tag.%victim%} to 15
- set {combat-tag.%attacker%} to 15
- on region enter:
- if "%region%" contains "Spawn":
- if {combat-tag.%player%} is true:
- cancel event
- message "&cYou cannot enter spawn while in combat." to player
- every second:
- loop all players:
- if {combat-tag.%loop-player%} is set:
- if {combat-tag.%loop-player%} is greater than 0:
- remove 1 from {combat-tag.%loop-player%}
- else:
- delete {combat-tag.%loop-player%}
- message "&aYou are no longer in combat." to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement