This commit is contained in:
Christer Warén
2023-04-26 17:44:54 +03:00
parent f86cc0d29e
commit 8332516600
15 changed files with 502 additions and 175 deletions

54
mirricraft-speed.sk Normal file
View File

@@ -0,0 +1,54 @@
#--------------------------------------------------
#
# MIRRICRAFT
# by Christer Warén / Warén Group
#
#--------------------------------------------------
command /speed [<text>] [<number>] [<player>]:
description: Speed
executable by: players
trigger:
if arg-1 is not set:
stop
if arg-1 is set:
if arg-1 is "walk":
if arg-2 is not set:
stop
if arg-2 is set:
if arg-2 is greater than 10:
set player's walking speed to 0.2 * 10
stop
set player's walking speed to 0.2 * arg 2
stop
if arg-1 is "fly":
if arg-2 is not set:
stop
if arg-2 is set:
if arg-3 is not set:
if player has the permission "mirricraft.speed":
if arg-2 is greater than 10:
set player's flying speed to 0.2 * 10
stop
set player's flying speed to 0.2 * arg 2
stop
if arg-3 is set:
if player has the permission "mirricraft.admin":
if arg-2 is greater than 10:
set arg-3's flying speed to 0.2 * 10
stop
set arg-3's flying speed to 0.2 * arg 2
stop
# Lobby Tunnel
on region enter:
wait 1 tick
if "%event-region%" contains "lobby_tunnel_":
set player's walking speed to 0.4
on region exit:
wait 1 tick
if "%event-region%" contains "lobby_tunnel_":
set player's walking speed to 0.2