Skip to content

Commit

Permalink
Update GrimSpectate.java
Browse files Browse the repository at this point in the history
  • Loading branch information
1lent authored May 22, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 8e5076a commit 6059553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ac/grim/grimac/commands/GrimSpectate.java
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ public void onSpectate(CommandSender sender, @Optional OnlinePlayer target) {
if (GrimAPI.INSTANCE.getSpectateManager().enable(player)) {
GrimPlayer grimPlayer = GrimAPI.INSTANCE.getPlayerDataManager().getPlayer(player);
if (grimPlayer != null) {
String message = GrimAPI.INSTANCE.getConfigManager().getConfig().getStringElse("spectate-return", "\n%prefix% &fClick here to return to previous location!\n");
String message = GrimAPI.INSTANCE.getConfigManager().getConfig().getStringElse("spectate-return", "\n%prefix% &fClick here to return to previous location\n");
grimPlayer.user.sendMessage(
LegacyComponentSerializer.legacy('&')
.deserialize(MessageUtil.formatWithNoColor(message))

0 comments on commit 6059553

Please sign in to comment.