mirror of
https://github.com/plexusorg/Plex.git
synced 2024-11-17 09:06:12 +00:00
30 lines
868 B
Java
30 lines
868 B
Java
package dev.plex.command.impl;
|
|
|
|
import dev.plex.command.PlexCommand;
|
|
import dev.plex.command.annotation.CommandParameters;
|
|
import dev.plex.command.annotation.CommandPermissions;
|
|
import dev.plex.command.source.CommandSource;
|
|
import dev.plex.command.source.RequiredCommandSource;
|
|
import dev.plex.rank.enums.Rank;
|
|
|
|
import java.util.List;
|
|
|
|
// TODO: See ranks of other players
|
|
|
|
@CommandPermissions(level = Rank.OP, source = RequiredCommandSource.IN_GAME)
|
|
@CommandParameters(description = "Displays your rank")
|
|
public class RankCMD extends PlexCommand {
|
|
public RankCMD() {
|
|
super("rank");
|
|
}
|
|
|
|
@Override
|
|
public void execute(CommandSource sender, String[] args) {
|
|
send(tl("yourRank", sender.getPlexPlayer().getRank()));
|
|
}
|
|
|
|
@Override
|
|
public List<String> onTabComplete(CommandSource sender, String[] args) {
|
|
return null;
|
|
}
|
|
} |