Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- Prefix: &8&l[&c&l!&8&l]
- CT-Time: 15
- MobsCombat-Tag: true
- command /combattag:
- aliases: /combatlog,/ct,/cl
- trigger:
- if {combatlog::*} contains player:
- set {_CT.span} to difference between {%player%.combatlog.time} and now
- set {_CT.cd} to "{@CT-Time} seconds" parsed as timespan
- send "{@Prefix} &fYou are Combat Tag for &e%difference between {_CT.span} and {_CT.cd}%"
- else:
- send "{@Prefix} &fYou are not in Combat Tag"
- on unload:
- delete {combatlog::*}
- delete {combatlag.blocked-cmds::*}
- delete {kill.combat::*}
- on load:
- add "tpa" to {combatlag.blocked-cmds::*}
- add "home" to {combatlag.blocked-cmds::*}
- add "spawn" to {combatlag.blocked-cmds::*}
- add "fly" to {combatlag.blocked-cmds::*}
- on damage:
- if attacker is player:
- if attacker is not victim:
- if {combatlog::*} doesn't contain "%attacker%":
- if attacker doesn't have permission "CT.Bypass.Player":
- add "%attacker%" to {combatlog::*}
- send "{@Prefix} &fYou are &cCombat Tag &fwith &e%victim%" to attacker
- console command "/fly %attacker% disable"
- if {combatlog::*} doesn't contain "%victim%":
- if victim doesn't have permission "CT.Bypass.Player":
- add "%victim%" to {combatlog::*}
- send "{@Prefix} &fYou are &cCombat Tag &fwith &e%attacker%" to victim
- console command "/fly %victim% disable"
- set {%attacker%.combatlog.time} to now
- set {%victim%.combatlog.time} to now
- else:
- if {@MobsCombat-Tag} is true:
- if attacker doesn't have permission "CT.Bypass.Mobs":
- if {combatlog::*} doesn't contain "%attacker%":
- add "%attacker%" to {combatlog::*}
- send "{@Prefix} &fYou are &cCombat Tag &fwith &e%victim%" to attacker
- console command "/fly %attacker% disable"
- on command:
- if {combatlog::*} contains player:
- if {combatlag.blocked-cmds::*} contains command:
- cancel event
- send "{@Prefix} &fYou can't use that command while in &cCombat Tag" to player
- on join:
- if {kill.combat::*} contains player:
- wait 1 second
- console command "/kill %player%"
- remove player from {kill.combat::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement