Ejemplo n.º 1
0
        private static void EnforceLoginPermission(object sender, EventArgs eventArgs)
        {
            Habbo habbo = (Habbo)sender;
            CancelReasonEventArgs cancelReasonEventArgs = (CancelReasonEventArgs)eventArgs;

            if (!habbo.HasPermission("habbo_login"))
            {
                cancelReasonEventArgs.Cancel       = true;
                cancelReasonEventArgs.CancelReason = "Permission \"habbo_login\" missing!";
            }
        }