- Fix channel sounds being played at the sender's location, fix muting

channel sounds.
  - Remove built-in HexFormatter.
  - Refactor some StandardChannel.
This commit is contained in:
LlmDl committed 2022-09-30 10:43:35 -05:00
1 parent e256df5020
commit 93f8bd846e
7 files changed
+98 -177

No files matched your search

@@ -10,6 +10,7 @@ import com.palmergames.bukkit.TownyChat.config.ConfigurationHandler;
import com.palmergames.bukkit.TownyChat.listener.EssentialsDiscordHookListener;
import com.palmergames.bukkit.TownyChat.listener.TownyChatPlayerListener;
import com.palmergames.bukkit.TownyChat.tasks.onLoadedTask;
import com.palmergames.bukkit.TownyChat.util.EssentialsIntegration;
import com.palmergames.bukkit.TownyChat.util.FileMgmt;
import com.palmergames.bukkit.towny.Towny;
import com.palmergames.bukkit.util.Version;
@@ -223,6 +224,12 @@ public class Chat extends JavaPlugin {
return dynMap;
}
public boolean isIgnoredByEssentials(Player sender, Player player) {
if (!getTowny().isEssentials())
return false;
return EssentialsIntegration.ignoredByEssentials(sender, player);
}
private void registerObjectCommands() {
List<Command> commands = new ArrayList<Command>();
for (Channel channel : channels.getAllChannels().values()) { // All channels