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 );
}