fCraft.PlayerOpException.ThrowCancelled C# (CSharp) Method

ThrowCancelled() static private method

static private ThrowCancelled ( [ player, [ target ) : void
player [
target [
return void
        internal static void ThrowCancelled( [NotNull] Player player, [NotNull] PlayerInfo target )
        {
            if ( player == null )
                throw new ArgumentNullException( "player" );
            if ( target == null )
                throw new ArgumentNullException( "target" );
            const string msg = "Cancelled by plugin.";
            const string colorMsg = "&S" + msg;
            throw new PlayerOpException( player, target, PlayerOpExceptionCode.Cancelled, msg, colorMsg );
        }