File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/com/selfcoders/matterbukkit Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 22
33import com .selfcoders .matterbukkit .matterbridgeapi .API ;
44import com .selfcoders .matterbukkit .matterbridgeapi .Message ;
5+ import org .bukkit .ChatColor ;
56import org .bukkit .configuration .file .FileConfiguration ;
67import org .bukkit .configuration .file .YamlConfiguration ;
78import org .bukkit .entity .Player ;
@@ -169,7 +170,7 @@ public void onPlayerJoin(PlayerJoinEvent event) {
169170 }
170171
171172 try {
172- matterBridgeApi .sendMessage (event .getJoinMessage ());
173+ matterBridgeApi .sendMessage (ChatColor . stripColor ( event .getJoinMessage () ));
173174 } catch (IOException exception ) {
174175 plugin .getLogger ().log (Level .SEVERE , exception .toString (), exception );
175176 }
@@ -182,7 +183,7 @@ public void onPlayerQuit(PlayerQuitEvent event) {
182183 }
183184
184185 try {
185- matterBridgeApi .sendMessage (event .getQuitMessage ());
186+ matterBridgeApi .sendMessage (ChatColor . stripColor ( event .getQuitMessage () ));
186187 } catch (IOException exception ) {
187188 plugin .getLogger ().log (Level .SEVERE , exception .toString (), exception );
188189 }
You can’t perform that action at this time.
0 commit comments