Undo the essentials stuff for now, look into it another day.

This commit is contained in:
Llm Dl committed 2021-04-28 07:44:57 -05:00
1 parent 5a1c9b6ced
commit c612e22eb0
6 files changed
+27 -45

No files matched your search

+1 -13
View File
@@ -1,6 +1,5 @@
package com.palmergames.bukkit.TownyChat;
import com.earth2me.essentials.Essentials;
import com.palmergames.bukkit.TownyChat.Command.ChannelCommand;
import com.palmergames.bukkit.TownyChat.Command.TownyChatCommand;
import com.palmergames.bukkit.TownyChat.Command.commandobjects.ChannelJoinAliasCommand;
@@ -12,7 +11,6 @@ import com.palmergames.bukkit.TownyChat.listener.TownyChatPlayerListener;
import com.palmergames.bukkit.TownyChat.tasks.onLoadedTask;
import com.palmergames.bukkit.TownyChat.util.FileMgmt;
import com.palmergames.bukkit.towny.Towny;
import com.palmergames.bukkit.towny.exceptions.TownyException;
import com.palmergames.bukkit.util.Version;
import org.bukkit.Bukkit;
@@ -46,13 +44,11 @@ public class Chat extends JavaPlugin {
protected PluginManager pm;
private Towny towny = null;
private DynmapAPI dynMap = null;
private Essentials essentials = null;
private static Version requiredTownyVersion = Version.fromString("0.96.5.5");
public static boolean usingPlaceholderAPI = false;
boolean chatConfigError = false;
boolean channelsConfigError = false;
@Override
@@ -88,11 +84,6 @@ public class Chat extends JavaPlugin {
pm.disablePlugin(this);
return;
}
if (towny.isEssentials())
try {
essentials = towny.getEssentials();
} catch (TownyException ignored) {}
getCommand("townychat").setExecutor(new TownyChatCommand(this));
getCommand("channel").setExecutor(new ChannelCommand(this));
@@ -210,15 +201,12 @@ public class Chat extends JavaPlugin {
public Towny getTowny() {
return towny;
}
public DynmapAPI getDynmap() {
return dynMap;
}
public Essentials getEssentials() {
return essentials;
}
private void registerObjectCommands() {
List<Command> commands = new ArrayList<Command>();
for (Channel channel : channels.getAllChannels().values()) { // All channels