private void setupVault(boolean debug) {
      if(debug) {
         this.getLogger().info("Setting up with Vault");
      }
      // Check vault
      if(getServer().getPluginManager().getPlugin("Vault") == null) {
         if(debug) {
            this.getLogger().info("Vault not found.");
         }
         return;
      } else if(debug) {
         this.getLogger().info("Vault found.");
      }

      RegisteredServiceProvider<Permission> rsp = getServer().getServicesManager().getRegistration(Permission.class);
      Permission perm = rsp.getProvider();
      if(debug && perm != null) {
         this.getLogger().info("Found permissions provider: " + perm.getName());
      } else if(debug) {
         this.getLogger().info("Permissions null.");
      }

      // Register module
      VaultModule module = new VaultModule(this, perm);
      registerModule(VaultModule.class, module);
   }