2019-10-17 16:04:43 -06:00
|
|
|
package dev.esophose.playerparticles.command;
|
2018-09-26 02:07:46 -06:00
|
|
|
|
2018-10-07 21:18:19 -06:00
|
|
|
import java.util.ArrayList;
|
2018-09-26 02:07:46 -06:00
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import org.bukkit.ChatColor;
|
|
|
|
|
2019-10-17 16:04:43 -06:00
|
|
|
import dev.esophose.playerparticles.PlayerParticles;
|
|
|
|
import dev.esophose.playerparticles.manager.LangManager;
|
|
|
|
import dev.esophose.playerparticles.manager.LangManager.Lang;
|
|
|
|
import dev.esophose.playerparticles.particles.PPlayer;
|
2018-09-26 02:07:46 -06:00
|
|
|
|
|
|
|
public class VersionCommandModule implements CommandModule {
|
|
|
|
|
2018-09-27 18:16:50 -06:00
|
|
|
public void onCommandExecute(PPlayer pplayer, String[] args) {
|
2018-11-04 04:03:54 -07:00
|
|
|
LangManager.sendCustomMessage(pplayer, ChatColor.YELLOW + "Running PlayerParticles " + ChatColor.AQUA + "v" + PlayerParticles.getPlugin().getDescription().getVersion());
|
|
|
|
LangManager.sendCustomMessage(pplayer, ChatColor.YELLOW + "Plugin created by: " + ChatColor.AQUA + "Esophose");
|
2018-09-27 18:16:50 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
public List<String> onTabComplete(PPlayer pplayer, String[] args) {
|
2019-04-28 00:17:08 -06:00
|
|
|
return new ArrayList<>();
|
2018-09-27 18:16:50 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
public String getName() {
|
|
|
|
return "version";
|
|
|
|
}
|
|
|
|
|
2018-09-29 17:27:37 -06:00
|
|
|
public Lang getDescription() {
|
2018-10-01 22:23:05 -06:00
|
|
|
return Lang.COMMAND_DESCRIPTION_VERSION;
|
2018-09-27 18:16:50 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
public String getArguments() {
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean requiresEffects() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-16 01:32:45 -06:00
|
|
|
public boolean canConsoleExecute() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-09-26 02:07:46 -06:00
|
|
|
}
|