mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Tree Feller now rewards xp based on the type of tree.
This commit is contained in:
parent
22c9fca915
commit
ca3b7f2172
@ -77,7 +77,22 @@ public class WoodCutting
|
||||
if(!plugin.misc.blockWatchList.contains(x))
|
||||
{
|
||||
WoodCutting.woodCuttingProcCheck(player, x);
|
||||
PP.addXP(SkillType.WOODCUTTING, LoadProperties.mpine, player);
|
||||
int xp = 0;
|
||||
|
||||
switch(x.getData())
|
||||
{
|
||||
case 0:
|
||||
xp += LoadProperties.mpine;
|
||||
break;
|
||||
case 1:
|
||||
xp += LoadProperties.mspruce;
|
||||
break;
|
||||
case 2:
|
||||
xp += LoadProperties.mbirch;
|
||||
break;
|
||||
}
|
||||
|
||||
PP.addXP(SkillType.WOODCUTTING, xp, player);
|
||||
}
|
||||
|
||||
//Drop the block
|
||||
|
Loading…
Reference in New Issue
Block a user