From 81174dbc44420124d29411a1e513d434f01c9f7c Mon Sep 17 00:00:00 2001
From: R-Josef <460257626@qq.com>
Date: Fri, 22 May 2020 09:27:10 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=AA=E5=AE=89=E8=A3=85PA?=
=?UTF-8?q?PI=E6=97=B6=E6=97=A0=E6=B3=95=E5=90=AF=E5=8A=A8=E7=9A=84?=
=?UTF-8?q?=E9=94=99=E8=AF=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pom.xml | 2 +-
resources/plugin.yml | 2 +-
src/moe/feo/bbstoper/sql/SQLManager.java | 5 ++++-
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/pom.xml b/pom.xml
index c49e842..761b088 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
4.0.0
moe.feo
BBSToper
- 3.5.1
+ 3.5.2
spigot-repo
diff --git a/resources/plugin.yml b/resources/plugin.yml
index 9fcbd30..2608e0b 100644
--- a/resources/plugin.yml
+++ b/resources/plugin.yml
@@ -1,6 +1,6 @@
name: BBSToper
main: moe.feo.bbstoper.BBSToper
-version: 3.5.1
+version: 3.5.2
author: Fengshuai(R_Josef)
website: https://www.mcbbs.net/thread-789082-1-1.html
softdepend: [PlaceholderAPI]
diff --git a/src/moe/feo/bbstoper/sql/SQLManager.java b/src/moe/feo/bbstoper/sql/SQLManager.java
index a44811d..2f917de 100644
--- a/src/moe/feo/bbstoper/sql/SQLManager.java
+++ b/src/moe/feo/bbstoper/sql/SQLManager.java
@@ -1,5 +1,6 @@
package moe.feo.bbstoper.sql;
+import org.bukkit.Bukkit;
import org.bukkit.scheduler.BukkitRunnable;
import org.bukkit.scheduler.BukkitTask;
@@ -34,7 +35,9 @@ public static void initializeSQLer() {// 初始化或重载数据库
Crawler.setSQLer(sql);
Poster.setSQLer(sql);
Reminder.setSQLer(sql);
- PAPIExpansion.setSQLer(sql);
+ if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
+ PAPIExpansion.setSQLer(sql);
+ }
} catch (Exception e) {
e.printStackTrace();
} finally {