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:
parent
1ecffe1895
commit
95c3ae3578
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user