mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-03 18:43:43 +01:00 
			
		
		
		
	Fix NPE resulting from using /mcremove command on a Flatfile DB. Fixes
#509.
This commit is contained in:
		@@ -73,7 +73,7 @@ public class McremoveCommand implements CommandExecutor {
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        database.profileCleanup(playerName);
 | 
			
		||||
        Database.profileCleanup(playerName);
 | 
			
		||||
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -465,7 +465,7 @@ public class Database {
 | 
			
		||||
        System.out.println("VendorError: " + ex.getErrorCode());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public void profileCleanup(String playerName) {
 | 
			
		||||
    public static void profileCleanup(String playerName) {
 | 
			
		||||
        McMMOPlayer mcmmoPlayer = Users.getPlayer(playerName);
 | 
			
		||||
 | 
			
		||||
        if (mcmmoPlayer != null) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user