diff options
| author | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2022-03-10 17:15:42 +0000 |
|---|---|---|
| committer | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2022-03-10 17:15:42 +0000 |
| commit | d4a087ded742da7e7ba1eee0d994e6fd99ddac17 (patch) | |
| tree | 5aefa6251075b9af9e2e4c2128573646cb39c80c | |
| parent | 44884a2c1ec20313da6088c2997457e430a1151f (diff) | |
Add null check to PAPI processor (closes #324)v3.10.1
- The previous commit with this message was a mistake
| -rw-r--r-- | bukkit/src/main/java/com/leonardobishop/quests/bukkit/hook/papi/PlaceholderAPIHook.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/hook/papi/PlaceholderAPIHook.java b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/hook/papi/PlaceholderAPIHook.java index c9102127..c98a8517 100644 --- a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/hook/papi/PlaceholderAPIHook.java +++ b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/hook/papi/PlaceholderAPIHook.java @@ -9,6 +9,10 @@ public class PlaceholderAPIHook implements AbstractPlaceholderAPIHook { private QuestsPlaceholders placeholder; public String replacePlaceholders(Player player, String text) { + if (text == null) { + return null; + } + return PlaceholderAPI.setPlaceholders(player, text); } |
