3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-26 16:12:42 +01:00

Added more yml info and remove author name from the message in the command.

Dieser Commit ist enthalten in:
fillefilip8 2016-03-03 17:42:38 +01:00
Ursprung 1b75526892
Commit 9108e78491
3 geänderte Dateien mit 7 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -15,6 +15,7 @@ import org.bukkit.plugin.java.JavaPlugin;
import us.myles.ViaVersion.api.ViaVersion; import us.myles.ViaVersion.api.ViaVersion;
import us.myles.ViaVersion.api.ViaVersionAPI; import us.myles.ViaVersion.api.ViaVersionAPI;
import us.myles.ViaVersion.commands.ViaVersionCommand;
import us.myles.ViaVersion.handlers.ViaVersionInitializer; import us.myles.ViaVersion.handlers.ViaVersionInitializer;
import us.myles.ViaVersion.util.ReflectionUtil; import us.myles.ViaVersion.util.ReflectionUtil;

Datei anzeigen

@ -1,4 +1,4 @@
package us.myles.ViaVersion; package us.myles.ViaVersion.commands;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.command.Command; import org.bukkit.command.Command;
@ -19,7 +19,7 @@ public class ViaVersionCommand implements CommandExecutor {
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
if (sender.hasPermission("viaversion.admin")) { if (sender.hasPermission("viaversion.admin")) {
if (args.length == 0) { if (args.length == 0) {
sender.sendMessage(color("&aViaVersion &c" + ViaVersion.getInstance().getVersion() + "&b by &6_MylesC")); sender.sendMessage(color("&aViaVersion &c" + ViaVersion.getInstance().getVersion()));
sender.sendMessage(color("&6Commands:")); sender.sendMessage(color("&6Commands:"));
sender.sendMessage(color("&2/viaversion list &7- &6Shows lists of all 1.9 clients and 1.8 clients.")); sender.sendMessage(color("&2/viaversion list &7- &6Shows lists of all 1.9 clients and 1.8 clients."));
} else if (args.length == 1) { } else if (args.length == 1) {

Datei anzeigen

@ -5,4 +5,7 @@ version: ${version}
load: startup load: startup
loadbefore: [ProtocolLib, ProxyPipe] loadbefore: [ProtocolLib, ProxyPipe]
commands: commands:
viaversion: viaversion:
description: Shows ViaVersion Version and more.
permission: viaversion.admin
aliases: [viaver]