From cc6f555aafeef03481b1e8f92a140272e1200f9f Mon Sep 17 00:00:00 2001 From: Sindastra <1236984+sindastra@users.noreply.github.com> Date: Sat, 17 Apr 2021 07:20:58 +0200 Subject: [PATCH] Add prefix to format instead of overwriting the format --- src/io/github/sindastra/BukkitOPPrefix/Main.java | 2 +- src/plugin.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/io/github/sindastra/BukkitOPPrefix/Main.java b/src/io/github/sindastra/BukkitOPPrefix/Main.java index 0dfe828..e1d7f73 100755 --- a/src/io/github/sindastra/BukkitOPPrefix/Main.java +++ b/src/io/github/sindastra/BukkitOPPrefix/Main.java @@ -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()); } } diff --git a/src/plugin.yml b/src/plugin.yml index 072d9e4..ad25fcb 100755 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -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