Skip to content

Commit

Permalink
Improved /teama version
Browse files Browse the repository at this point in the history
Issue Reference: #296
  • Loading branch information
booksaw committed Dec 22, 2021
1 parent 9cc9ce3 commit ebee0a4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ Features:

Improvements
- Added a teleport to player option in /teama teleport (#269)
- Improved the output of /teama version to include more information (#296)

Bug Fixes:
- Fixed bug with players getting kicked out of teams when running /teama create (#292)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import com.booksaw.betterTeams.CommandResponse;
import com.booksaw.betterTeams.Main;
import com.booksaw.betterTeams.Team;
import com.booksaw.betterTeams.commands.SubCommand;
import com.booksaw.betterTeams.message.MessageManager;
import com.booksaw.betterTeams.message.ReferencedFormatMessage;
import org.bukkit.command.CommandSender;

Expand All @@ -12,6 +14,8 @@ public class VersionTeama extends SubCommand {

@Override
public CommandResponse onCommand(CommandSender sender, String label, String[] args) {
MessageManager.sendMessageF(sender, "admin.versionstorage", Team.getTeamManager().getClass().getName());
MessageManager.sendMessageF(sender, "admin.versionversion", Main.plugin.getServer().getVersion());
return new CommandResponse(true,
new ReferencedFormatMessage("admin.version", Main.plugin.getDescription().getVersion() + ""));
}
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/messages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ admin.holo.remove.noHolo: '&4No holograms found'
admin.holo.remove.success: '&6Hologram deleted'
admin.title.success: '&6that players title has been changed'
admin.title.reset: '&6That players title has been reset'
admin.version: '&6Current plugin version: %s'
admin.version: '&6Current plugin version: &b%s'
admin.versionstorage: '&6Storage Method: &b%s'
admin.versionversion: '&6Minecraft Version: &b%s'
admin.noTeam: '&4That is not a team'
admin.home.success: '&6You have been teleported to that teams home'
admin.home.noHome: '&4That team does not have a home set'
Expand Down

0 comments on commit ebee0a4

Please sign in to comment.