2020-10-31 08:55:27 +00:00
|
|
|
package me.totalfreedom.plex.command.impl;
|
|
|
|
|
|
|
|
import com.google.common.collect.ImmutableList;
|
2020-11-03 00:19:26 +00:00
|
|
|
import me.totalfreedom.plex.command.annotation.CommandParameters;
|
|
|
|
import me.totalfreedom.plex.command.annotation.CommandPermissions;
|
2020-10-31 08:55:27 +00:00
|
|
|
import me.totalfreedom.plex.command.PlexCommand;
|
2020-11-03 00:19:26 +00:00
|
|
|
import me.totalfreedom.plex.command.source.CommandSource;
|
2020-10-31 08:55:27 +00:00
|
|
|
import me.totalfreedom.plex.command.source.RequiredCommandSource;
|
|
|
|
import me.totalfreedom.plex.rank.enums.Rank;
|
|
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
import java.util.List;
|
|
|
|
|
2020-11-02 00:06:08 +00:00
|
|
|
import static me.totalfreedom.plex.util.PlexUtils.tl;
|
|
|
|
|
2020-10-31 08:55:27 +00:00
|
|
|
@CommandPermissions(level = Rank.OP, source = RequiredCommandSource.ANY)
|
2020-11-02 00:06:08 +00:00
|
|
|
@CommandParameters(aliases = "tst,tast", description = "HELLO")
|
2020-10-31 08:55:27 +00:00
|
|
|
public class TestCMD extends PlexCommand
|
|
|
|
{
|
|
|
|
public TestCMD() {
|
|
|
|
super("test");
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2020-11-03 00:19:26 +00:00
|
|
|
public void execute(CommandSource sender, String[] args)
|
2020-11-02 00:06:08 +00:00
|
|
|
{
|
2020-11-03 00:19:26 +00:00
|
|
|
send(tl("variableTest", sender.getName()));
|
2020-10-31 08:55:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2020-11-03 00:19:26 +00:00
|
|
|
public List<String> onTabComplete(CommandSource sender, String[] args) {
|
2020-10-31 08:55:27 +00:00
|
|
|
if (args.length == 1)
|
|
|
|
{
|
|
|
|
return Arrays.asList("WHATTHEFAWK", "LUL");
|
|
|
|
}
|
|
|
|
return ImmutableList.of();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|