diff --git a/com/gamingmesh/jobs/container/Job.java b/com/gamingmesh/jobs/container/Job.java index 03383b26..544538e0 100644 --- a/com/gamingmesh/jobs/container/Job.java +++ b/com/gamingmesh/jobs/container/Job.java @@ -123,7 +123,7 @@ public class Job { } public boolean isSame(Job job) { - return this.equals(job); + return this.getName().equalsIgnoreCase(job.getName()); } public double getPointBoost() { diff --git a/com/gamingmesh/jobs/listeners/JobsListener.java b/com/gamingmesh/jobs/listeners/JobsListener.java index 19999fb4..eb54b978 100644 --- a/com/gamingmesh/jobs/listeners/JobsListener.java +++ b/com/gamingmesh/jobs/listeners/JobsListener.java @@ -156,12 +156,21 @@ public class JobsListener implements Listener { } @EventHandler(priority = EventPriority.MONITOR) - public void onPlayerJoin(PlayerJoinEvent event) { + public void onPlayerJoin(final PlayerJoinEvent event) { // make sure plugin is enabled if (!plugin.isEnabled()) return; - Jobs.getPlayerManager().playerJoin(event.getPlayer()); + if (!Jobs.getGCManager().MultiServerCompatability()) + Jobs.getPlayerManager().playerJoin(event.getPlayer()); + else + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() { + @Override + public void run() { + Jobs.getPlayerManager().playerJoin(event.getPlayer()); + } + }, 10L); + } // @EventHandler(priority = EventPriority.MONITOR) diff --git a/plugin.yml b/plugin.yml index 44cbd8a8..9ca9a305 100644 --- a/plugin.yml +++ b/plugin.yml @@ -1,7 +1,7 @@ name: Jobs description: Jobs Plugin for the BukkitAPI main: com.gamingmesh.jobs.Jobs -version: 3.6.1 +version: 3.6.2 author: phrstbrn depend: [Vault] softdepend: [MythicMobs, McMMO]