55import co .aikar .commands .MessageType ;
66import co .aikar .commands .annotation .*;
77import co .aikar .locales .MessageKey ;
8- import org .bukkit .Statistic ;
98import org .bukkit .command .CommandSender ;
109import org .bukkit .entity .Player ;
10+ import org .matrixnetwork .matrixlifesystem .entity .PlayerData ;
1111
1212import static org .matrixnetwork .matrixlifesystem .Constants .ACF_BASE_KEY ;
13- import static org .matrixnetwork .matrixlifesystem .Constants .INFO_CMD_PERMISSION ;
1413
15- @ CommandAlias ("stemplate " )
16- public class TemplatesCommands extends BaseCommand {
14+ @ CommandAlias ("lifesystem " )
15+ public class LifeSystemCommands extends BaseCommand {
1716
1817 // see https://github.com/aikar/commands/wiki/Locales
1918 static MessageKey key (String key ) {
@@ -30,12 +29,10 @@ public void showHelp(CommandSender sender, CommandHelp help) {
3029 @ Subcommand ("info|i" )
3130 @ CommandAlias ("info" )
3231 @ Description ("{@@commands.descriptions.info}" )
33- @ CommandCompletion ("@players" )
34- @ CommandPermission (INFO_CMD_PERMISSION )
3532 public void info (@ Flags ("self" ) Player player ) {
3633 success ("info" ,
37- "{player }" , player . getName (),
38- "{play_time}" , player . getStatistic ( Statistic . PLAY_ONE_MINUTE ) + " Minutes"
34+ "{lifes }" , String . valueOf ( PlayerData . getPlayerData ( player
35+ . getUniqueId (). toString ()). getLifes ())
3936 );
4037 }
4138
0 commit comments