Skip to content

Commit e353973

Browse files
committed
Fixed incorrect string comparator when checking for prefix. Fixes #1.
1 parent ee01daa commit e353973

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/dev/hypera/ultrastaffchat/listeners/impl/ChatListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public void onChat(ChatEvent e) {
5252

5353
if(p.hasPermission(UltraStaffChat.getConfig().getString("permission-talk"))) {
5454
String prefix = UltraStaffChat.getConfig().getString("staffchat-prefix");
55-
if(prefix != "" && e.getMessage().startsWith(prefix)) {
55+
if(!prefix.equals("") && e.getMessage().startsWith(prefix)) {
5656
e.setCancelled(true);
5757
if(StaffChat.staffChatIsMuted()) {
5858
if(!((ProxiedPlayer) e.getSender()).hasPermission(UltraStaffChat.getConfig().getString("permission-bypass"))) {

0 commit comments

Comments
 (0)