mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-29 12:14:43 +02:00
MASSIVE config overhaul - most keys are now based on the "proper" name
given to a material or entity by Bukkit. This WILL wipe some custom values you may have set, so please verify that your values are what you want them to be after the new config file is generated.
This commit is contained in:
@ -28,40 +28,10 @@ public class Excavation {
|
||||
*/
|
||||
public static void excavationProcCheck(Block block, McMMOPlayer mcMMOPlayer) {
|
||||
Material material = block.getType();
|
||||
int xp;
|
||||
int xp = Config.getInstance().getXp(SkillType.EXCAVATION, material);
|
||||
|
||||
switch (material) {
|
||||
case CLAY:
|
||||
xp = Config.getInstance().getExcavationClayXP();
|
||||
break;
|
||||
|
||||
case DIRT:
|
||||
xp = Config.getInstance().getExcavationDirtXP();
|
||||
break;
|
||||
|
||||
case GRASS:
|
||||
xp = Config.getInstance().getExcavationGrassXP();
|
||||
break;
|
||||
|
||||
case GRAVEL:
|
||||
xp = Config.getInstance().getExcavationGravelXP();
|
||||
break;
|
||||
|
||||
case MYCEL:
|
||||
xp = Config.getInstance().getExcavationMycelXP();
|
||||
break;
|
||||
|
||||
case SAND:
|
||||
xp = Config.getInstance().getExcavationSandXP();
|
||||
break;
|
||||
|
||||
case SOUL_SAND:
|
||||
xp = Config.getInstance().getExcavationSoulSandXP();
|
||||
break;
|
||||
|
||||
default:
|
||||
xp = ModChecks.getCustomBlock(block).getXpGain();;
|
||||
break;
|
||||
if (xp == 0 && ModChecks.isCustomExcavationBlock(block)) {
|
||||
xp = ModChecks.getCustomBlock(block).getXpGain();
|
||||
}
|
||||
|
||||
Player player = mcMMOPlayer.getPlayer();
|
||||
|
Reference in New Issue
Block a user