Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /fly [<player>]:
- permission: essentials.fly
- permission message: &8(&c!&8) &7You can not do this command!
- trigger:
- if {fly.%player%} is not set:
- send "&7Fight mode has been &dEnabled!"
- set player's flight mode to true
- set {fly.%player%} to true
- stop
- if {fly.%player%} is true:
- send "&7Fight mode has been &dDisabled"
- set player's flight mode to false
- delete {fly.%player%}
- stop
- #
- # Combat Log
- #
- every tick:
- loop all players:
- if loop-player is flying:
- if {cl.%loop-player%} is true:
- send "&8[&cCL&8] &cFlying in PvP is dis-allowed" to loop-player
- set loop-player's flight mode to false
- on damage:
- if victim is player:
- if attacker is player:
- if victim doesn't have permission "cl.bypass":
- set {cl.%victim%} to true
- set {cltime.%victim%} to "20"
- else:
- stop trigger
- if attacker doesn't have permission "cl.bypass":
- set {cl.%attacker%} to true
- set {cltime.%attacker%} to "20"
- else:
- stop trigger
- on quit:
- if {cltime.%player%} is true:
- kill player
- loop all players:
- if loop-player has permission "cl.notify":
- send "&c[CL] &c%player% &7has been banned for combat logging! &c[4 HOURS]" to loop-player
- kick player due to "<pink>[CL] <gray>You have logged out in combat! <pink>[4 HOURS]"
- ban player due to "<pink>[CL] <gray>You have logged out in combat! <pink>[4 HOURS]"
- wait 4 hours
- unban player
Add Comment
Please, Sign In to add comment