mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-25 20:16:13 +01:00
Just in case WG is in wrong version
This commit is contained in:
parent
750813d948
commit
4f634c900f
2
pom.xml
2
pom.xml
@ -5,7 +5,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>Jobs</groupId>
|
||||
<artifactId>jobs</artifactId>
|
||||
<version>3.9.5</version>
|
||||
<version>3.9.6</version>
|
||||
<name>Jobs</name>
|
||||
<url>http://maven.apache.org</url>
|
||||
<properties>
|
||||
|
@ -825,7 +825,6 @@ public class Jobs extends JavaPlugin {
|
||||
cManager.fillCommands();
|
||||
} catch (Exception e) {
|
||||
System.out.println("There was some issues when starting plugin. Please contact dev about this. Plugin will be disabled.");
|
||||
this.setEnabled(false);
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
@ -30,11 +30,14 @@ public class WorldGuardManager {
|
||||
}
|
||||
|
||||
public List<RestrictedArea> getArea(Location loc) {
|
||||
ApplicableRegionSet regions = wg.getRegionContainer().get(loc.getWorld()).getApplicableRegions(loc);
|
||||
for (ProtectedRegion one : regions.getRegions()) {
|
||||
if (!Jobs.getRestrictedAreaManager().isExist(one.getId()))
|
||||
continue;
|
||||
return Jobs.getRestrictedAreaManager().getRestrictedAreasByName(one.getId());
|
||||
try {
|
||||
ApplicableRegionSet regions = wg.getRegionContainer().get(loc.getWorld()).getApplicableRegions(loc);
|
||||
for (ProtectedRegion one : regions.getRegions()) {
|
||||
if (!Jobs.getRestrictedAreaManager().isExist(one.getId()))
|
||||
continue;
|
||||
return Jobs.getRestrictedAreaManager().getRestrictedAreasByName(one.getId());
|
||||
}
|
||||
} catch (NoSuchMethodError e) {
|
||||
}
|
||||
return new ArrayList<RestrictedArea>();
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public class LanguageManager {
|
||||
languages.add("ru");
|
||||
languages.add("tr");
|
||||
languages.add("zhcn");
|
||||
languages.add("zhrw");
|
||||
languages.add("zhtw");
|
||||
|
||||
for (String lang : languages) {
|
||||
YmlMaker langFile = new YmlMaker(plugin, "locale" + File.separator + "messages_" + lang + ".yml");
|
||||
|
@ -1,7 +1,7 @@
|
||||
name: Jobs
|
||||
description: Jobs Plugin for the BukkitAPI
|
||||
main: com.gamingmesh.jobs.Jobs
|
||||
version: 3.9.5
|
||||
version: 3.9.6
|
||||
website: https://www.spigotmc.org/resources/jobs-reborn.4216/
|
||||
author: phrstbrn
|
||||
softdepend: [Vault, iConomy, MythicMobs, McMMO, WorldGuard]
|
||||
|
Loading…
Reference in New Issue
Block a user