Beispiel #1
0
 public void TebexInfo()
 {
     try
     {
         TebexApiClient wc = new TebexApiClient();
         wc.setPlugin(Tebex.Instance);
         wc.DoGet("information", this);
         wc.Dispose();
     }
     catch (TimeoutException)
     {
         Tebex.logWarning("Timeout!");
     }
 }
Beispiel #2
0
 public void TebexForcecheck()
 {
     Tebex.logWarning("Checking for commands to be executed...");
     try
     {
         TebexApiClient wc = new TebexApiClient();
         wc.setPlugin(Tebex.Instance);
         wc.DoGet("queue", this);
         wc.Dispose();
     }
     catch (TimeoutException)
     {
         Tebex.logWarning("Timeout!");
     }
 }
Beispiel #3
0
        public void TebexSecret(string secret)
        {
            Tebex.Instance.Config.Secret = secret;

            try
            {
                TebexApiClient wc = new TebexApiClient();
                wc.setPlugin(Tebex.Instance);
                wc.DoGet("information", this);
                wc.Dispose();
            }
            catch (TimeoutException)
            {
                Tebex.logWarning("Timeout!");
            }
        }