Skip to content

Commit

Permalink
Improve version command
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgeiss0702 committed Dec 18, 2023
1 parent b36df72 commit a611efd
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@
public class Version extends SubCommand {

final QueueMain main;
final Component message;
public Version(QueueMain main) {
this.main = main;
message = main.getMessages().toComponent(
"&a" + (main.isPremium() ? "ajQueuePlus" : "ajQueue") + " v&f" + main.getPlatformMethods().getPluginVersion() + " &aby &fajgeiss0702"
);
}

@Override
Expand All @@ -40,7 +44,7 @@ public Messages getMessages() {
@Override
public void execute(ICommandSender sender, String[] args) {
if(!checkPermission(sender)) return;
sender.sendMessage(Component.text(main.getPlatformMethods().getPluginVersion()));
sender.sendMessage(message);
}

@Override
Expand Down

0 comments on commit a611efd

Please sign in to comment.