Jail/src/main/java/com/graywolf336/jail/command/commands/JailVersionCommand.java

27 lines
687 B
Java

package com.graywolf336.jail.command.commands;
import org.bukkit.command.CommandSender;
import com.graywolf336.jail.JailManager;
import com.graywolf336.jail.command.Command;
import com.graywolf336.jail.command.CommandInfo;
@CommandInfo(
maxArgs = 0,
minimumArgs = 0,
needsPlayer = false,
pattern = "jailversion|jv",
permission = "jail.command.jailversion",
usage = "/jailversion"
)
public class JailVersionCommand implements Command{
public boolean execute(JailManager jm, CommandSender sender, String... args) {
// Sends the version number to the sender
sender.sendMessage("Jail Version: " + jm.getPlugin().getDescription().getVersion());
return true;
}
}