|
@@ -80,6 +80,9 @@ public class Herbalism {
|
|
|
* @param plugin mcMMO plugin instance
|
|
|
*/
|
|
|
public static void herbalismProcCheck(final Block block, Player player, BlockBreakEvent event, mcMMO plugin) {
|
|
|
+ if(player == null)
|
|
|
+ return;
|
|
|
+
|
|
|
final PlayerProfile profile = Users.getProfile(player);
|
|
|
final int MAX_BONUS_LEVEL = 1000;
|
|
|
|
|
@@ -363,6 +366,9 @@ public class Herbalism {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if(Config.getInstance().getHerbalismAFKDisabled() && player.isInsideVehicle())
|
|
|
+ return;
|
|
|
+
|
|
|
Skills.xpProcessing(player, profile, SkillType.HERBALISM, xp);
|
|
|
}
|
|
|
|