Update
This commit is contained in:
@@ -1,21 +1,36 @@
|
||||
# --- Fly ---
|
||||
command /fly [<text>]:
|
||||
#--------------------------------------------------
|
||||
#
|
||||
# MIRRICRAFT
|
||||
# by Christer Warén / Warén Group
|
||||
#
|
||||
#--------------------------------------------------
|
||||
|
||||
command /fly [<player>]:
|
||||
description: Fly
|
||||
executable by: console and players
|
||||
executable by: players
|
||||
trigger:
|
||||
if player has the permission "mirricraft.fly":
|
||||
if {fly.%player%} is not set:
|
||||
message "&7[&2MirriCraft&7]&r Lento on nyt sallittu"
|
||||
set player's flight mode to true
|
||||
set {fly.%player%} to true
|
||||
stop
|
||||
message "&7[&2MirriCraft&7]&r Lento on pois käytöstä"
|
||||
set player's flight mode to false
|
||||
delete {fly.%player%}
|
||||
stop
|
||||
|
||||
on join:
|
||||
if {fly.%player%} is set:
|
||||
if player has the permission "mirricraft.vip":
|
||||
set player's flight mode to true
|
||||
stop
|
||||
if arg-1 is not set:
|
||||
if player has the permission "mirricraft.fly":
|
||||
if {fly.%player%} is not set:
|
||||
message "&7[&2MirriCraft&7]&r Lento on nyt sallittu"
|
||||
set player's flight mode to true
|
||||
set {fly.%player%} to true
|
||||
stop
|
||||
else:
|
||||
message "&7[&2MirriCraft&7]&r Lento on pois käytöstä"
|
||||
set player's flight mode to false
|
||||
delete {fly.%player%}
|
||||
stop
|
||||
if arg-1 is set:
|
||||
if player has permission "mirricraft.admin":
|
||||
if {fly.%arg-1%} is not set:
|
||||
set arg-1's flight mode to true
|
||||
set {fly.%arg-1%} to true
|
||||
stop
|
||||
else:
|
||||
set arg-1's flight mode to false
|
||||
delete {fly.%arg-1%}
|
||||
stop
|
||||
|
||||
on quit:
|
||||
delete {fly.%player%}
|
||||
|
||||
Reference in New Issue
Block a user