We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee01daa commit e353973Copy full SHA for e353973
1 file changed
src/main/java/dev/hypera/ultrastaffchat/listeners/impl/ChatListener.java
@@ -52,7 +52,7 @@ public void onChat(ChatEvent e) {
52
53
if(p.hasPermission(UltraStaffChat.getConfig().getString("permission-talk"))) {
54
String prefix = UltraStaffChat.getConfig().getString("staffchat-prefix");
55
- if(prefix != "" && e.getMessage().startsWith(prefix)) {
+ if(!prefix.equals("") && e.getMessage().startsWith(prefix)) {
56
e.setCancelled(true);
57
if(StaffChat.staffChatIsMuted()) {
58
if(!((ProxiedPlayer) e.getSender()).hasPermission(UltraStaffChat.getConfig().getString("permission-bypass"))) {
0 commit comments