mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-07 08:47:46 +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())
|
if (GconfigManager.MythicMobsEnabled && MythicManager != null && MythicManager.Check())
|
||||||
MythicManager.registerListener();
|
MythicManager.registerListener();
|
||||||
|
|
||||||
|
setPistonProtectionListener();
|
||||||
if (GconfigManager.useBlockProtection) {
|
if (GconfigManager.useBlockProtection) {
|
||||||
setPistonProtectionListener();
|
|
||||||
getServer().getPluginManager().registerEvents(PistonProtectionListener, this);
|
getServer().getPluginManager().registerEvents(PistonProtectionListener, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -373,7 +373,7 @@ public class ShopManager {
|
|||||||
String[] split = one.split("-");
|
String[] split = one.split("-");
|
||||||
String job = split[0];
|
String job = split[0];
|
||||||
int lvl = 1;
|
int lvl = 1;
|
||||||
if (split.length > 2) {
|
if (split.length > 1) {
|
||||||
try {
|
try {
|
||||||
lvl = Integer.parseInt(split[1]);
|
lvl = Integer.parseInt(split[1]);
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user