mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-03 18:43:43 +01:00 
			
		
		
		
	Stagger load attempts more.
This commit is contained in:
		@@ -62,7 +62,7 @@ public class ConvertDatabaseCommand implements CommandExecutor {
 | 
			
		||||
                        mcMMO.getDatabaseManager().saveUser(profile);
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
                    new PlayerProfileLoadingTask(player).runTaskTimerAsynchronously(mcMMO.p, 1, 20); // 1 Tick delay to ensure the player is marked as online before we begin loading
 | 
			
		||||
                    new PlayerProfileLoadingTask(player).runTaskTimerAsynchronously(mcMMO.p, 1, 100); // 1 Tick delay to ensure the player is marked as online before we begin loading
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                new DatabaseConversionTask(oldDatabase, sender, previousType.toString(), newType.toString()).runTaskAsynchronously(mcMMO.p);
 | 
			
		||||
 
 | 
			
		||||
@@ -38,7 +38,7 @@ public class ConvertExperienceCommand implements CommandExecutor {
 | 
			
		||||
                new FormulaConversionTask(sender, newType).runTaskLater(mcMMO.p, 1);
 | 
			
		||||
 | 
			
		||||
                for (Player player : mcMMO.p.getServer().getOnlinePlayers()) {
 | 
			
		||||
                    new PlayerProfileLoadingTask(player).runTaskTimerAsynchronously(mcMMO.p, 1, 20); // 1 Tick delay to ensure the player is marked as online before we begin loading
 | 
			
		||||
                    new PlayerProfileLoadingTask(player).runTaskTimerAsynchronously(mcMMO.p, 1, 100); // 1 Tick delay to ensure the player is marked as online before we begin loading
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                return true;
 | 
			
		||||
 
 | 
			
		||||
@@ -387,7 +387,7 @@ public class PlayerListener implements Listener {
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        new PlayerProfileLoadingTask(player).runTaskTimerAsynchronously(mcMMO.p, 1, 20); // 1 Tick delay to ensure the player is marked as online before we begin loading
 | 
			
		||||
        new PlayerProfileLoadingTask(player).runTaskTimerAsynchronously(mcMMO.p, 1, 100); // 1 Tick delay to ensure the player is marked as online before we begin loading
 | 
			
		||||
 | 
			
		||||
        if (Config.getInstance().getMOTDEnabled() && Permissions.motd(player)) {
 | 
			
		||||
            Motd.displayAll(player);
 | 
			
		||||
 
 | 
			
		||||
@@ -168,7 +168,7 @@ public class mcMMO extends JavaPlugin {
 | 
			
		||||
            holidayManager = new HolidayManager();
 | 
			
		||||
 | 
			
		||||
            for (Player player : getServer().getOnlinePlayers()) {
 | 
			
		||||
                new PlayerProfileLoadingTask(player).runTaskTimerAsynchronously(mcMMO.p, 1, 20); // 1 Tick delay to ensure the player is marked as online before we begin loading
 | 
			
		||||
                new PlayerProfileLoadingTask(player).runTaskTimerAsynchronously(mcMMO.p, 1, 100); // 1 Tick delay to ensure the player is marked as online before we begin loading
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            debug("Version " + getDescription().getVersion() + " is enabled!");
 | 
			
		||||
 
 | 
			
		||||
@@ -113,7 +113,7 @@ public final class Misc {
 | 
			
		||||
 | 
			
		||||
        if (player != null) {
 | 
			
		||||
            UserManager.remove(player);
 | 
			
		||||
            new PlayerProfileLoadingTask(player).runTaskTimerAsynchronously(mcMMO.p, 1, 20); // 1 Tick delay to ensure the player is marked as online before we begin loading
 | 
			
		||||
            new PlayerProfileLoadingTask(player).runTaskTimerAsynchronously(mcMMO.p, 1, 100); // 1 Tick delay to ensure the player is marked as online before we begin loading
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user