1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-02-27 17:52:17 +01:00

Lets remove meta

This commit is contained in:
Zrips 2018-08-16 13:46:32 +03:00
parent 6accc15a4f
commit ac5c0a4624
2 changed files with 6 additions and 2 deletions

View File

@ -1023,7 +1023,11 @@ public class JobsPaymentListener implements Listener {
// mob spawner, no payment or experience // mob spawner, no payment or experience
if (lVictim.hasMetadata(Jobs.getPlayerManager().getMobSpawnerMetadata()) && !Jobs.getGCManager().payNearSpawner()) { 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; return;
} }

View File

@ -1,7 +1,7 @@
name: Jobs name: Jobs
description: Jobs Plugin for the BukkitAPI description: Jobs Plugin for the BukkitAPI
main: com.gamingmesh.jobs.Jobs main: com.gamingmesh.jobs.Jobs
version: 4.7.1 version: 4.7.2
api-version: 1.13 api-version: 1.13
website: https://www.spigotmc.org/resources/jobs-reborn.4216/ website: https://www.spigotmc.org/resources/jobs-reborn.4216/
author: phrstbrn author: phrstbrn