mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-04 14:38:58 +00:00
- Handle knock-off Essentials plugins fooling TownyChat into hooking
the real EssentialsX.
This commit is contained in:
1 parent
a1c7e9f7c2
commit
e36fdb9870
2 files changed
+3
-1
No files matched your search
@@ -464,3 +464,4 @@ v0.106:
|
|||||||
- Update min. Towny version to 0.99.1.0.
|
- Update min. Towny version to 0.99.1.0.
|
||||||
v0.107:
|
v0.107:
|
||||||
- Remove usage of Version, using new Towny version checker instead.
|
- Remove usage of Version, using new Towny version checker instead.
|
||||||
|
- Handle knock-off Essentials plugins fooling TownyChat into hooking the real EssentialsX.
|
||||||
@@ -17,6 +17,7 @@ import com.palmergames.bukkit.towny.scheduling.TaskScheduler;
|
|||||||
import com.palmergames.bukkit.towny.scheduling.impl.BukkitTaskScheduler;
|
import com.palmergames.bukkit.towny.scheduling.impl.BukkitTaskScheduler;
|
||||||
import com.palmergames.bukkit.towny.scheduling.impl.FoliaTaskScheduler;
|
import com.palmergames.bukkit.towny.scheduling.impl.FoliaTaskScheduler;
|
||||||
import com.palmergames.util.FileMgmt;
|
import com.palmergames.util.FileMgmt;
|
||||||
|
import com.palmergames.util.JavaUtil;
|
||||||
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
@@ -174,7 +175,7 @@ public class Chat extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test = pm.getPlugin("Essentials");
|
test = pm.getPlugin("Essentials");
|
||||||
if (test != null) {
|
if (test != null && JavaUtil.classExists("com.earth2me.essentials.Essentials")) {
|
||||||
this.essentials = (Essentials) test;
|
this.essentials = (Essentials) test;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user