Update 1.1

This commit is contained in:
SloudPL 2025-06-19 19:58:46 +02:00
parent f7e1a53050
commit 059ebd770b
4 changed files with 6 additions and 4 deletions

View file

@ -8,4 +8,6 @@ Permissions:
/sloudchat reload - sloudpl.reload
/chat clear - sloudpl.chat
/chat [on/off/clear] - sloudpl.chat
Bypass chat off - sloudpl.chat.bypass

View file

@ -23,7 +23,7 @@ public class onPlayerChat implements Listener {
Player player = event.getPlayer();
if(!plugin.isChatEnabled){
if(!plugin.isChatEnabled && !player.hasPermission("sloudpl.chat.bypass")){
player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.getConfig().getString("disabled-chat-msg")));
event.setCancelled(true);

View file

@ -24,7 +24,7 @@ public class onPlayerChat1_16 implements Listener {
Player player = event.getPlayer();
if(!plugin.isChatEnabled){
if(!plugin.isChatEnabled && !player.hasPermission("sloudpl.chat.bypass")){
player.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.getConfig().getString("disabled-chat-msg")));
event.setCancelled(true);

View file

@ -23,5 +23,5 @@ chat-enable-message: '&aChat has been enabled!'
# [PlayerDisplayName] - Player Display Name
# [Player] and [PlayerDisplayName] only works in line2
clear-line1: '"&8[]-----&bChat&8-----[]"'
clear-line2: '&7Chat został &bwyczyszczony&7 przez &b[Player]'
clear-line2: '&7Chat was &bcleared &7by &b[Player]'
clear-line3: '"&8[]-----&bChat&8-----[]"'