Пример #1
0
	@Override
	public final void reloadConfig()
	{
		config.load();
		money = _getMoney();
		unlimited = _getUnlimited();
		powertools = _getPowertools();
		homes = _getHomes();
		lastLocation = _getLastLocation();
		lastTeleportTimestamp = _getLastTeleportTimestamp();
		lastHealTimestamp = _getLastHealTimestamp();
		jail = _getJail();
		mails = _getMails();
		teleportEnabled = _getTeleportEnabled();
		godmode = _getGodModeEnabled();
		muted = _getMuted();
		muteTimeout = _getMuteTimeout();
		jailed = _getJailed();
		jailTimeout = _getJailTimeout();
		lastLogin = _getLastLogin();
		lastLogout = _getLastLogout();
		lastLoginAddress = _getLastLoginAddress();
		afk = _getAfk();
		geolocation = _getGeoLocation();
		isSocialSpyEnabled = _isSocialSpyEnabled();
		isNPC = _isNPC();
		arePowerToolsEnabled = _arePowerToolsEnabled();
		kitTimestamps = _getKitTimestamps();
		nickname = _getNickname();
		ignoredPlayers = _getIgnoredPlayers();
		logoutLocation = _getLogoutLocation();
	}
Пример #2
0
 @Override
 public final void reloadConfig() {
   users.load();
   spyusers.clear();
   final List<String> keys = users.getKeys(null);
   for (String key : keys) {
     if (isSpy(key)) {
       final String address = getAddress(key);
       if (address != null) {
         spyusers.add(address);
       }
     }
   }
 }
Пример #3
0
 public void reloadConfig() {
   config.load();
 }
Пример #4
0
 public Settings(File dataFolder) {
   config = new EssentialsConf(new File(dataFolder, "config.yml"));
   config.setTemplateName("/config.yml");
   config.load();
 }