#-------------------------------------------------- # # MIRRICRAFT # by Christer Warén / Warén Group # #-------------------------------------------------- command /speed [] [] []: 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