mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	Merge me daddy
This commit is contained in:
		
							
								
								
									
										1
									
								
								.gitattributes
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitattributes
									
									
									
									
										vendored
									
									
								
							@@ -2,3 +2,4 @@
 | 
			
		||||
 | 
			
		||||
*.png binary
 | 
			
		||||
*.wav binary
 | 
			
		||||
p
 | 
			
		||||
@@ -204,19 +204,21 @@ Version 2.2.0
 | 
			
		||||
    Added 'UndefinedSkillBehaviour' for trying to use a method that has no behaviour defined for the provided skill
 | 
			
		||||
 | 
			
		||||
Version 2.1.115
 | 
			
		||||
    Green Thumb now requires a hoe to activate
 | 
			
		||||
    Hoes no longer give free replants
 | 
			
		||||
    You can sneak to break plants with a hoe in your hand (or just put the hoe away)
 | 
			
		||||
    Using a hoe on non-fully grown crops will replant them as a convenience feature
 | 
			
		||||
    New sound option in sounds.yml called 'ITEM_CONSUMED', plays when eating seeds for Green Thumb
 | 
			
		||||
    Cocoa plants now require GT of at least 2 to start at the second stage of growth
 | 
			
		||||
    Green Terra now boosts growth on Green Thumb by 1 stage (doesn't go above the maximum value though)
 | 
			
		||||
    Green Thumb now requires a hoe to activate
 | 
			
		||||
    You can sneak to break plants with a hoe in your hand (or just put the hoe away)
 | 
			
		||||
    Hoes no longer give free replants
 | 
			
		||||
    There is now a feature in place to prevent breaking a newly automatically replanted (via green thumb) crop from being breakable for a few seconds after it appears
 | 
			
		||||
    Using a hoe on non-fully grown crops will replant them as a convenience feature for those who can't bother to wait for all of their plants to grow (put away the hoe to break non-fully grown crops)
 | 
			
		||||
    Fixed a bug where Salvage always gave the best results
 | 
			
		||||
    Fixed an issue with arrows causing exceptions with players not yet having data loaded
 | 
			
		||||
    Spectral arrows are now tracked by mcMMO
 | 
			
		||||
    Use minimum level of salvageable properly
 | 
			
		||||
    Fix Axes Critical Strikes default permissions ( new fixed permission: mcmmo.ability.axes.criticalstrikes )
 | 
			
		||||
    Fix potential null pointer exception for salvage
 | 
			
		||||
    Updated locale entry 'Herbalism.SubSkill.GreenTerra.Description'
 | 
			
		||||
 | 
			
		||||
Version 2.1.114
 | 
			
		||||
    Fix some more locale usages, should aim to further prevent issues with oddball locales
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,6 @@ package com.gmail.nossr50.commands.admin;
 | 
			
		||||
import co.aikar.commands.BaseCommand;
 | 
			
		||||
import co.aikar.commands.annotation.*;
 | 
			
		||||
import com.gmail.nossr50.mcMMO;
 | 
			
		||||
import com.sk89q.worldedit.bukkit.BukkitAdapter;
 | 
			
		||||
import net.kyori.text.TextComponent;
 | 
			
		||||
import net.kyori.text.adapter.bukkit.TextAdapter;
 | 
			
		||||
import net.kyori.text.format.TextColor;
 | 
			
		||||
 
 | 
			
		||||
@@ -39,7 +39,6 @@ import org.bukkit.entity.Player;
 | 
			
		||||
import org.bukkit.inventory.ItemStack;
 | 
			
		||||
import org.bukkit.metadata.FixedMetadataValue;
 | 
			
		||||
import org.bukkit.plugin.Plugin;
 | 
			
		||||
import org.jetbrains.annotations.NotNull;
 | 
			
		||||
 | 
			
		||||
import java.util.HashMap;
 | 
			
		||||
import java.util.Map;
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,5 @@
 | 
			
		||||
package com.gmail.nossr50.datatypes.skills.behaviours;
 | 
			
		||||
 | 
			
		||||
import com.gmail.nossr50.core.MetadataConstants;
 | 
			
		||||
import com.gmail.nossr50.mcMMO;
 | 
			
		||||
import org.bukkit.Material;
 | 
			
		||||
import org.bukkit.block.BlockState;
 | 
			
		||||
 
 | 
			
		||||
@@ -44,7 +44,6 @@ import com.gmail.nossr50.util.skills.*;
 | 
			
		||||
import com.gmail.nossr50.util.sounds.SoundManager;
 | 
			
		||||
import com.gmail.nossr50.worldguard.WorldGuardManager;
 | 
			
		||||
import com.gmail.nossr50.worldguard.WorldGuardUtils;
 | 
			
		||||
import net.kyori.text.adapter.bukkit.TextAdapter;
 | 
			
		||||
import net.shatteredlands.shatt.backup.ZipLibrary;
 | 
			
		||||
import org.bstats.bukkit.Metrics;
 | 
			
		||||
import org.bukkit.Bukkit;
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,6 @@ package com.gmail.nossr50.runnables.skills;
 | 
			
		||||
import com.gmail.nossr50.datatypes.interactions.NotificationType;
 | 
			
		||||
import com.gmail.nossr50.datatypes.skills.BleedContainer;
 | 
			
		||||
import com.gmail.nossr50.mcMMO;
 | 
			
		||||
import com.gmail.nossr50.util.skills.ParticleEffectUtils;
 | 
			
		||||
import com.gmail.nossr50.util.sounds.SoundType;
 | 
			
		||||
import org.bukkit.Bukkit;
 | 
			
		||||
import org.bukkit.entity.LivingEntity;
 | 
			
		||||
 
 | 
			
		||||
@@ -3,11 +3,9 @@ package com.gmail.nossr50.runnables.skills;
 | 
			
		||||
import com.gmail.nossr50.core.MetadataConstants;
 | 
			
		||||
import com.gmail.nossr50.datatypes.meta.RecentlyReplantedCropMeta;
 | 
			
		||||
import com.gmail.nossr50.mcMMO;
 | 
			
		||||
import com.gmail.nossr50.util.skills.ParticleEffectUtils;
 | 
			
		||||
import org.bukkit.Location;
 | 
			
		||||
import org.bukkit.Material;
 | 
			
		||||
import org.bukkit.block.Block;
 | 
			
		||||
import org.bukkit.block.BlockFace;
 | 
			
		||||
import org.bukkit.block.BlockState;
 | 
			
		||||
import org.bukkit.block.data.Ageable;
 | 
			
		||||
import org.bukkit.event.block.BlockBreakEvent;
 | 
			
		||||
@@ -43,7 +41,7 @@ public class DelayedCropReplant extends BukkitRunnable {
 | 
			
		||||
        BlockState currentState = cropBlock.getState();
 | 
			
		||||
 | 
			
		||||
        //Remove the metadata marking the block as recently replanted
 | 
			
		||||
        new markPlantAsOld(blockBreakEvent.getBlock().getLocation()).runTaskLater(pluginRef, 20*5);
 | 
			
		||||
        new markPlantAsOld(blockBreakEvent.getBlock().getLocation()).runTaskLater(pluginRef, 10);
 | 
			
		||||
 | 
			
		||||
        if(blockBreakEvent.isCancelled()) {
 | 
			
		||||
            wasImmaturePlant = true;
 | 
			
		||||
@@ -91,10 +89,11 @@ public class DelayedCropReplant extends BukkitRunnable {
 | 
			
		||||
        @Override
 | 
			
		||||
        public void run() {
 | 
			
		||||
            Block cropBlock = cropLoc.getBlock();
 | 
			
		||||
            if(cropBlock.getMetadata(MetadataConstants.REPLANT_META_KEY).size() > 0)
 | 
			
		||||
                cropBlock.setMetadata(MetadataConstants.REPLANT_META_KEY, new RecentlyReplantedCropMeta(pluginRef, false));
 | 
			
		||||
 | 
			
		||||
            pluginRef.getParticleEffectUtils().playFluxEffect(cropLocation);
 | 
			
		||||
            if(cropBlock.getMetadata(MetadataConstants.REPLANT_META_KEY).size() > 0) {
 | 
			
		||||
                cropBlock.setMetadata(MetadataConstants.REPLANT_META_KEY, new RecentlyReplantedCropMeta(pluginRef, false));
 | 
			
		||||
                pluginRef.getParticleEffectUtils().playFluxEffect(cropLocation);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -10,7 +10,6 @@ import com.gmail.nossr50.datatypes.skills.SubSkillType;
 | 
			
		||||
import com.gmail.nossr50.datatypes.skills.behaviours.AcrobaticsBehaviour;
 | 
			
		||||
import com.gmail.nossr50.mcMMO;
 | 
			
		||||
import com.gmail.nossr50.skills.SkillManager;
 | 
			
		||||
import com.gmail.nossr50.util.skills.ParticleEffectUtils;
 | 
			
		||||
import com.gmail.nossr50.util.skills.SkillActivationType;
 | 
			
		||||
import org.bukkit.Location;
 | 
			
		||||
import org.bukkit.entity.Entity;
 | 
			
		||||
 
 | 
			
		||||
@@ -9,7 +9,6 @@ import com.gmail.nossr50.datatypes.skills.ToolType;
 | 
			
		||||
import com.gmail.nossr50.datatypes.skills.behaviours.AxesBehaviour;
 | 
			
		||||
import com.gmail.nossr50.mcMMO;
 | 
			
		||||
import com.gmail.nossr50.skills.SkillManager;
 | 
			
		||||
import com.gmail.nossr50.util.skills.ParticleEffectUtils;
 | 
			
		||||
import com.gmail.nossr50.util.skills.SkillActivationType;
 | 
			
		||||
import org.bukkit.entity.LivingEntity;
 | 
			
		||||
import org.bukkit.entity.Player;
 | 
			
		||||
 
 | 
			
		||||
@@ -15,13 +15,10 @@ import com.gmail.nossr50.datatypes.skills.behaviours.HerbalismBehaviour;
 | 
			
		||||
import com.gmail.nossr50.mcMMO;
 | 
			
		||||
import com.gmail.nossr50.runnables.skills.DelayedCropReplant;
 | 
			
		||||
import com.gmail.nossr50.runnables.skills.DelayedHerbalismXPCheckTask;
 | 
			
		||||
import com.gmail.nossr50.runnables.skills.HerbalismBlockUpdaterTask;
 | 
			
		||||
import com.gmail.nossr50.skills.SkillManager;
 | 
			
		||||
import com.gmail.nossr50.util.StringUtils;
 | 
			
		||||
import com.gmail.nossr50.util.skills.SkillActivationType;
 | 
			
		||||
import com.gmail.nossr50.util.sounds.SoundManager;
 | 
			
		||||
import com.gmail.nossr50.util.sounds.SoundType;
 | 
			
		||||
import org.bukkit.Location;
 | 
			
		||||
import org.bukkit.Material;
 | 
			
		||||
import org.bukkit.block.Block;
 | 
			
		||||
import org.bukkit.block.BlockFace;
 | 
			
		||||
@@ -32,7 +29,6 @@ import org.bukkit.entity.Player;
 | 
			
		||||
import org.bukkit.event.block.BlockBreakEvent;
 | 
			
		||||
import org.bukkit.inventory.ItemStack;
 | 
			
		||||
import org.bukkit.inventory.PlayerInventory;
 | 
			
		||||
import org.bukkit.metadata.FixedMetadataValue;
 | 
			
		||||
 | 
			
		||||
import java.util.ArrayList;
 | 
			
		||||
import java.util.Collection;
 | 
			
		||||
@@ -190,7 +186,12 @@ public class HerbalismManager extends SkillManager {
 | 
			
		||||
 | 
			
		||||
        //When replanting a immature crop we cancel the block break event and back out
 | 
			
		||||
        if(greenThumbActivated) {
 | 
			
		||||
            return;
 | 
			
		||||
            if(originalBreak.getBlock().getBlockData() instanceof Ageable) {
 | 
			
		||||
                Ageable ageableCrop = (Ageable) originalBreak.getBlock().getBlockData();
 | 
			
		||||
                if(!isAgeableMature(ageableCrop)) {
 | 
			
		||||
                    return;
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        /*
 | 
			
		||||
 
 | 
			
		||||
@@ -13,7 +13,6 @@ import com.gmail.nossr50.mcMMO;
 | 
			
		||||
import com.gmail.nossr50.skills.SkillManager;
 | 
			
		||||
import com.gmail.nossr50.util.StringUtils;
 | 
			
		||||
import com.gmail.nossr50.util.random.RandomChanceSkillStatic;
 | 
			
		||||
import com.gmail.nossr50.util.skills.ParticleEffectUtils;
 | 
			
		||||
import com.gmail.nossr50.util.skills.SkillActivationType;
 | 
			
		||||
import com.gmail.nossr50.util.sounds.SoundType;
 | 
			
		||||
import org.bukkit.Location;
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,6 @@ package com.gmail.nossr50.skills.taming;
 | 
			
		||||
 | 
			
		||||
import com.gmail.nossr50.datatypes.skills.subskills.taming.CallOfTheWildType;
 | 
			
		||||
import com.gmail.nossr50.mcMMO;
 | 
			
		||||
import com.gmail.nossr50.util.skills.ParticleEffectUtils;
 | 
			
		||||
import org.bukkit.Location;
 | 
			
		||||
import org.bukkit.Sound;
 | 
			
		||||
import org.bukkit.entity.LivingEntity;
 | 
			
		||||
 
 | 
			
		||||
@@ -4,7 +4,6 @@ import com.gmail.nossr50.mcMMO;
 | 
			
		||||
import net.kyori.text.TextComponent;
 | 
			
		||||
import net.kyori.text.adapter.bukkit.TextAdapter;
 | 
			
		||||
import net.kyori.text.serializer.gson.GsonComponentSerializer;
 | 
			
		||||
import org.bukkit.ChatColor;
 | 
			
		||||
import org.bukkit.command.CommandSender;
 | 
			
		||||
import org.jetbrains.annotations.NotNull;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,6 @@
 | 
			
		||||
package com.gmail.nossr50.util.skills;
 | 
			
		||||
 | 
			
		||||
import com.gmail.nossr50.mcMMO;
 | 
			
		||||
import com.gmail.nossr50.util.sounds.SoundManager;
 | 
			
		||||
import com.gmail.nossr50.util.sounds.SoundType;
 | 
			
		||||
import org.bukkit.Effect;
 | 
			
		||||
import org.bukkit.Location;
 | 
			
		||||
 
 | 
			
		||||
@@ -268,7 +268,7 @@ Herbalism.Ability.Lower=[[GRAY]]You lower your Hoe.
 | 
			
		||||
Herbalism.Ability.Ready=[[DARK_AQUA]]You [[GOLD]]ready[[DARK_AQUA]] your Hoe.
 | 
			
		||||
Herbalism.Ability.ShroomThumb.Fail=**SHROOM THUMB FAIL**
 | 
			
		||||
Herbalism.SubSkill.GreenTerra.Name=Green Terra
 | 
			
		||||
Herbalism.SubSkill.GreenTerra.Description=Spread the Terra, 3x Drops
 | 
			
		||||
Herbalism.SubSkill.GreenTerra.Description=Spread the Terra, 3x Drops, Boosts Green Thumb
 | 
			
		||||
Herbalism.SubSkill.GreenTerra.Stat=Green Terra Duration
 | 
			
		||||
Herbalism.SubSkill.GreenThumb.Name=Green Thumb
 | 
			
		||||
Herbalism.SubSkill.GreenThumb.Description=Auto-Plants crops when harvesting
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user