From ec2d4a184692650ead49519550ac46fd2b89785f Mon Sep 17 00:00:00 2001 From: montlikadani Date: Tue, 24 Nov 2020 20:52:32 +0100 Subject: [PATCH] Exclude some things from pom --- pom.xml | 12 ++++++++++++ .../gamingmesh/jobs/Placeholders/Placeholder.java | 3 +-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 900bd8eb..39d02559 100644 --- a/pom.xml +++ b/pom.xml @@ -67,6 +67,10 @@ org.bukkit bukkit + + com.sk89q.spigot + bukkit-classloader-check + @@ -127,6 +131,10 @@ truevfs-profile-default_2.13 + + org.apache.logging.log4j + log4j-slf4j-impl + @@ -140,6 +148,10 @@ me.rayzr522 jsonmessage + + org.jetbrains + annotations + diff --git a/src/main/java/com/gamingmesh/jobs/Placeholders/Placeholder.java b/src/main/java/com/gamingmesh/jobs/Placeholders/Placeholder.java index eca17c56..3f28812a 100644 --- a/src/main/java/com/gamingmesh/jobs/Placeholders/Placeholder.java +++ b/src/main/java/com/gamingmesh/jobs/Placeholders/Placeholder.java @@ -238,14 +238,13 @@ public class Placeholder { Matcher matcher = this.getRule().getMatcher(text); if (matcher == null) return lsInLs; - while (matcher.find()) { + if (matcher.find()) { try { for (Integer oneG : groups) { lsInLs.add(matcher.group(oneG + 1)); } } catch (Exception e) { } - break; } return lsInLs; }