Beispiel #1
0
  public void loadFactorySettings() {
    getConfigData().setString("join-message-format", "&8(&6$nonline&8) &3$n &7joined");
    getConfigData().setString("leave-message-format", "&8(&6$nonline&8) &3$n &7left");
    getConfigData().setString("kick-message-format", "&8(&6$nonline&8) &3$n &4was kicked out");

    getConfigData().setBoolean("permissions-multigroup", false);
    getConfigData().setBoolean("permissions-multiworld", false);
    getConfigData().setBoolean("permissions-default-op", false);

    getConfigData().setBoolean("enable-ram-clear-cycle", false);
    getConfigData().setInt("ram-clear-cycle-time", 60);

    for (Module module : ModuleManager.getManager().getModules()) {
      if (module.getConfiguration() != null) module.getConfiguration().reset();
    }

    getConfigData().setString("reset", "no");
    log("| ========================================== |");
    log("| * VOXELGUEST 4                             |");
    log("| *                                          |");
    log("| * The premiere server adminstration suite  |");
    log("| *                                          |");
    log("| * Built by: psanker & VoxelPlugineering    |");
    log("| * Licensed by the BSD License - 2012       |");
    log("| ========================================== |");
    log("Factory settings loaded");
  }
 private boolean isInFakeQuit(Player p) {
   try {
     VanishModule module = (VanishModule) ModuleManager.getManager().getModule(VanishModule.class);
     return module.isInFakequit(p);
   } catch (ModuleException ex) {
     return false;
   }
 }
 private int getFakequitSize() {
   try {
     VanishModule module = (VanishModule) ModuleManager.getManager().getModule(VanishModule.class);
     return module.getFakequitSize();
   } catch (ModuleException ex) {
     return 0;
   }
 }
 private boolean isAFK(Player p) {
   try {
     AFKModule module = (AFKModule) ModuleManager.getManager().getModule(AFKModule.class);
     return module.isAFK(p);
   } catch (ModuleException ex) {
     return false;
   }
 }