1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-01-06 00:08:13 +01:00

Fixed issue when the RequiredJobLevels not works correctly

This commit is contained in:
montlikadani 2020-01-13 15:56:25 +01:00
parent 1ecffe1895
commit 95c3ae3578
2 changed files with 2 additions and 2 deletions

View File

@ -899,8 +899,8 @@ public class Jobs extends JavaPlugin {
if (GconfigManager.MythicMobsEnabled && MythicManager != null && MythicManager.Check())
MythicManager.registerListener();
setPistonProtectionListener();
if (GconfigManager.useBlockProtection) {
setPistonProtectionListener();
getServer().getPluginManager().registerEvents(PistonProtectionListener, this);
}

View File

@ -373,7 +373,7 @@ public class ShopManager {
String[] split = one.split("-");
String job = split[0];
int lvl = 1;
if (split.length > 2) {
if (split.length > 1) {
try {
lvl = Integer.parseInt(split[1]);
} catch (NumberFormatException e) {