mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-03 22:21:20 +00:00
- 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:
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
|
||||
|
||||
Reference in new issue
Block a user