Skip to content

Commit

Permalink
use sendRichMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
david committed Jun 9, 2024
1 parent ce89303 commit 2d0a97c
Showing 1 changed file with 5 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,10 @@ public boolean execute(
}
if (args.length == 0) {
if (p.hasPermission("bettergopaint.admin")) {
p.sendMessage(MiniMessage
.miniMessage()
.deserialize(prefix + "<red>/gp size<gray>|<red>toggle<gray>|<red>info<gray>|<red>reload"));
p.sendRichMessage(prefix + "<red>/gp size<gray>|<red>toggle<gray>|<red>info<gray>|<red>reload");
return true;
}
p.sendMessage(MiniMessage
.miniMessage()
.deserialize(prefix + "<red>/gp size<gray>|<red>toggle<gray>|<red>info<gray>"));
p.sendRichMessage(prefix + "<red>/gp size<gray>|<red>toggle<gray>|<red>info<gray>");
return true;
} else if (args.length == 1) {
if (args[0].equalsIgnoreCase("size")) {
Expand All @@ -86,8 +82,7 @@ public boolean execute(
return true;
} else if (args[0].equalsIgnoreCase("info") || args[0].equalsIgnoreCase("i")) {
p.sendRichMessage(prefix + "<aqua>Created by: <gold>TheMeinerLP");
p.sendRichMessage(prefix + "<aqua>Links: <gold><click:open_url:https" +
"://twitter.com/themeinerlp'><u>Twitter</u></click>");
p.sendRichMessage(prefix + "<aqua>Links: <gold><click:open_url:https://twitter.com/themeinerlp'><u>Twitter</u></click>");
return true;
}
if (p.hasPermission("bettergopaint.admin")) {
Expand All @@ -109,14 +104,10 @@ public boolean execute(
}
}
if (p.hasPermission("bettergopaint.admin")) {
p.sendMessage(MiniMessage
.miniMessage()
.deserialize(prefix + "<red>/gp size<gray>|<red>toggle<gray>|<red>info<gray>|<red>reload"));
p.sendRichMessage(prefix + "<red>/gp size<gray>|<red>toggle<gray>|<red>info<gray>|<red>reload");
return true;
}
p.sendMessage(MiniMessage
.miniMessage()
.deserialize(prefix + "<red>/gp size<gray>|<red>toggle<gray>|<red>info<gray>"));
p.sendRichMessage(prefix + "<red>/gp size<gray>|<red>toggle<gray>|<red>info<gray>");
return true;
}
return false;
Expand Down

0 comments on commit 2d0a97c

Please sign in to comment.