diff --git a/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java b/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java index a81300be..3d851b24 100644 --- a/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java +++ b/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java @@ -1023,7 +1023,11 @@ public class JobsPaymentListener implements Listener { // mob spawner, no payment or experience if (lVictim.hasMetadata(Jobs.getPlayerManager().getMobSpawnerMetadata()) && !Jobs.getGCManager().payNearSpawner()) { - //lVictim.removeMetadata(mobSpawnerMetadata, plugin); + try { + // So lets remove meta in case some plugin removes entity in wrong way. + lVictim.removeMetadata(Jobs.getPlayerManager().getMobSpawnerMetadata(), plugin); + } catch (Exception ex) { + } return; } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 31047628..bbe2ae42 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,7 +1,7 @@ name: Jobs description: Jobs Plugin for the BukkitAPI main: com.gamingmesh.jobs.Jobs -version: 4.7.1 +version: 4.7.2 api-version: 1.13 website: https://www.spigotmc.org/resources/jobs-reborn.4216/ author: phrstbrn