mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-01 14:38:57 +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
+4
-2
No files matched your search
@@ -463,4 +463,5 @@ v0.106:
|
||||
- Fix version check, courtesy of Warrior with PR #48.
|
||||
- Update min. Towny version to 0.99.1.0.
|
||||
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.FoliaTaskScheduler;
|
||||
import com.palmergames.util.FileMgmt;
|
||||
import com.palmergames.util.JavaUtil;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.command.Command;
|
||||
@@ -174,7 +175,7 @@ public class Chat extends JavaPlugin {
|
||||
}
|
||||
|
||||
test = pm.getPlugin("Essentials");
|
||||
if (test != null) {
|
||||
if (test != null && JavaUtil.classExists("com.earth2me.essentials.Essentials")) {
|
||||
this.essentials = (Essentials) test;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user