fCraft.BuildingCommands.Fly C# (CSharp) Method

Fly() private static method

private static Fly ( Player player, Command cmd ) : void
player Player
cmd Command
return void
        private static void Fly( Player player, Command cmd )
        {
            if ( player.IsFlying ) {
                fCraft.Utils.FlyHandler.GetInstance().StopFlying( player );
                player.Message( "You are no longer flying." );
                return;
            } else {
                if ( player.IsUsingWoM ) {
                    player.Message( "You cannot use /fly when using WOM" );
                    return;
                }
                fCraft.Utils.FlyHandler.GetInstance().StartFlying( player );
                player.Message( "You are now flying, jump!" );
            }
        }