2023-04-26 14:44:54 +00:00
|
|
|
#--------------------------------------------------
|
|
|
|
#
|
|
|
|
# MIRRICRAFT
|
|
|
|
# by Christer Warén / Warén Group
|
|
|
|
#
|
|
|
|
#--------------------------------------------------
|
|
|
|
|
|
|
|
command /fly [<player>]:
|
2020-10-24 03:31:01 +00:00
|
|
|
description: Fly
|
2023-04-26 14:44:54 +00:00
|
|
|
executable by: players
|
2020-10-24 03:31:01 +00:00
|
|
|
trigger:
|
2023-04-26 14:44:54 +00:00
|
|
|
if arg-1 is not set:
|
|
|
|
if player has the permission "mirricraft.fly":
|
2024-01-14 23:42:01 +00:00
|
|
|
if {fly.%player's name%} is not set:
|
2023-04-26 14:44:54 +00:00
|
|
|
message "&7[&2MirriCraft&7]&r Lento on nyt sallittu"
|
|
|
|
set player's flight mode to true
|
2024-01-14 23:42:01 +00:00
|
|
|
set {fly.%player's name%} to true
|
2023-04-26 14:44:54 +00:00
|
|
|
stop
|
|
|
|
else:
|
|
|
|
message "&7[&2MirriCraft&7]&r Lento on pois käytöstä"
|
|
|
|
set player's flight mode to false
|
2024-01-14 23:42:01 +00:00
|
|
|
delete {fly.%player's name%}
|
2023-04-26 14:44:54 +00:00
|
|
|
stop
|
2024-01-14 23:42:01 +00:00
|
|
|
# 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
|
2023-04-26 14:44:54 +00:00
|
|
|
|
|
|
|
on quit:
|
2024-01-14 23:42:01 +00:00
|
|
|
delete {fly.%player's name%}
|