33 lines
1.3 KiB
Java
33 lines
1.3 KiB
Java
package net.knarcraft.stargate.command;
|
|
|
|
import net.knarcraft.stargate.Stargate;
|
|
import net.md_5.bungee.api.ChatColor;
|
|
import org.bukkit.command.Command;
|
|
import org.bukkit.command.CommandExecutor;
|
|
import org.bukkit.command.CommandSender;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
/**
|
|
* This command represents the plugin's about command
|
|
*/
|
|
public class CommandAbout implements CommandExecutor {
|
|
|
|
@Override
|
|
public boolean onCommand(@NotNull CommandSender commandSender, @NotNull Command command, @NotNull String s,
|
|
@NotNull String[] strings) {
|
|
|
|
ChatColor textColor = ChatColor.GOLD;
|
|
ChatColor highlightColor = ChatColor.GREEN;
|
|
commandSender.sendMessage(textColor + "Stargate Plugin originally created by " + highlightColor +
|
|
"Drakia" + textColor + ", and revived by " + highlightColor + "EpicKnarvik97");
|
|
commandSender.sendMessage(textColor + "Go to " + highlightColor +
|
|
"https://git.knarcraft.net/EpicKnarvik97/Stargate " + textColor + "for the official repository");
|
|
String author = Stargate.getStargateConfig().getLanguageLoader().getString("author");
|
|
if (!author.isEmpty()) {
|
|
commandSender.sendMessage(textColor + "Language created by " + highlightColor + author);
|
|
}
|
|
return true;
|
|
}
|
|
|
|
}
|