mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	Don't need the same function in two places.
This commit is contained in:
		@@ -247,21 +247,6 @@ public final class Misc {
 | 
			
		||||
        newItem.setItemStack(cloned);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Get the max power level for a player.
 | 
			
		||||
     *
 | 
			
		||||
     * @return the maximum power level for a player
 | 
			
		||||
     */
 | 
			
		||||
    public static int getPowerLevelCap() {
 | 
			
		||||
        int levelCap = Config.getInstance().getPowerLevelCap();
 | 
			
		||||
 | 
			
		||||
        if (levelCap > 0) {
 | 
			
		||||
            return levelCap;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return Integer.MAX_VALUE;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static Random getRandom() {
 | 
			
		||||
        return random;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user