Skip to content

Commit

Permalink
Add prefix to format instead of overwriting the format
Browse files Browse the repository at this point in the history
  • Loading branch information
sindastra committed Apr 17, 2021
1 parent 3a1f812 commit cc6f555
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/io/github/sindastra/BukkitOPPrefix/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void onChatMessageSent(AsyncPlayerChatEvent event)
{
if ( (event.getPlayer().isOp() && showForOp) || event.getPlayer().hasPermission("opprefix.show") )
{
event.setFormat(prefix + "<%s> %s");
event.setFormat(prefix + event.getFormat());
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
api-version: 1.13
main: io.github.sindastra.BukkitOPPrefix.Main
version: 1.0.3
version: 1.0.4
author: Sindastra
website: https://github.com/sindastra/BukkitOPPrefix
name: SindastrasOPPrefix
Expand Down

0 comments on commit cc6f555

Please sign in to comment.