fCraft.MineField.PlayerPlacing C# (CSharp) Method

PlayerPlacing() private static method

private static PlayerPlacing ( object sender, PlayerPlacingBlockEventArgs e ) : void
sender object
e fCraft.Events.PlayerPlacingBlockEventArgs
return void
        private static void PlayerPlacing( object sender, PlayerPlacingBlockEventArgs e )
        {
            World world = e.Player.World;
            if ( world.gameMode == GameMode.MineField ) {
                e.Result = CanPlaceResult.Revert;
            }
        }