private int getWaittimeBeforeFirstIPCheck() {
   int ret = 0;
   if (!storage.isIPCheckGloballyDisabled()) {
     // use own ipcheck if possible
     if (this.getActivePlugin().getIPCheckProvider() != null) {
       ret = this.getActivePlugin().getWaittimeBeforeFirstIPCheck();
     } else {
       ret = storage.getSecondsBeforeFirstIPCheck();
     }
   }
   // ip check disabled
   return Math.max(ret, 0);
 }
 /**
  * returns how long the controller has to wait between two ip checks
  *
  * @return
  */
 private int getIpCheckInterval() {
   int ret = 0;
   if (!storage.isIPCheckGloballyDisabled()) {
     // use own ipcheck if possible
     if (this.getActivePlugin().getIPCheckProvider() != null) {
       ret = this.getActivePlugin().getIPCheckProvider().getIpCheckInterval();
     } else {
       ret = 5;
     }
   }
   // ip check disabled
   return Math.max(ret, 0);
 }