@SuppressWarnings({"static-access"})
    public static int amount (Player player, String[] args) {
        int spawnLimit = plugin.maxSpawnLimit;
        if ((args.length <= 2)) {
            return 1;
        } else {
            int amount = Integer.parseInt(args[2]);
            try {
                if (1 > amount) {
                    amount = Integer.valueOf(1);
                    player.sendMessage(ChatColor.GOLD + "[More Mobs]" + ChatColor.RED + " Minimum spawn limit is 1!");
                }
                if (spawnLimit < amount) {
                    amount = Integer.valueOf(spawnLimit);
                    player.sendMessage(ChatColor.GOLD + "[More Mobs]" + ChatColor.RED + " Max spawn limit is " + spawnLimit + "!");
                }
                return amount;
            } catch (Exception ex) {
                amount = Integer.valueOf(1);
                return amount;
            }
        }
    }