Update 1.1
This commit is contained in:
parent
f7e1a53050
commit
059ebd770b
4 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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-----[]"'
|
Loading…
Add table
Reference in a new issue