mirror of
https://github.com/plexusorg/Plex.git
synced 2024-11-17 00:56:12 +00:00
8202021f07
Create List command Remove fionn command Remove test command Add Mojang Utils Auto add Plex Players back to cache on start if any are online
25 lines
798 B
Java
25 lines
798 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.RequiredCommandSource;
|
|
import dev.plex.rank.enums.Rank;
|
|
import net.kyori.adventure.text.Component;
|
|
import org.bukkit.command.CommandSender;
|
|
import org.bukkit.entity.Player;
|
|
|
|
import java.util.List;
|
|
|
|
// TODO: See ranks of other players
|
|
|
|
@CommandPermissions(level = Rank.OP, source = RequiredCommandSource.IN_GAME)
|
|
@CommandParameters(name = "rank", description = "Displays your rank")
|
|
public class RankCMD extends PlexCommand {
|
|
|
|
@Override
|
|
public Component execute(CommandSender sender, String[] args) {
|
|
return tl("yourRank", getPlexPlayer((Player) sender).getRank());
|
|
}
|
|
|
|
} |