Search in sources :

Example 1 with ScriptVersionChecker

use of net.aufdemrand.denizen.utilities.ScriptVersionChecker in project Denizen-For-Bukkit by DenizenScript.

the class DenizenCommandHandler method scriptcheck.

/*
     * DENIZEN SCRIPTVERSIONS
     */
@Command(aliases = { "denizen" }, usage = "scriptversions", desc = "Shows the currently loaded version of your scripts and checks them against the script repo.", modifiers = { "scriptversions" }, min = 1, max = 3, permission = "denizen.basic")
public void scriptcheck(CommandContext args, CommandSender sender) throws CommandException {
    sender.sendMessage(ChatColor.GREEN + "Checking " + VersionScriptContainer.scripts.size() + " script(s)!");
    for (VersionScriptContainer cont : VersionScriptContainer.scripts) {
        ScriptVersionChecker svc = new ScriptVersionChecker(cont);
        svc.runme(sender);
    }
}
Also used : ScriptVersionChecker(net.aufdemrand.denizen.utilities.ScriptVersionChecker) VersionScriptContainer(net.aufdemrand.denizen.scripts.containers.core.VersionScriptContainer) Command(net.aufdemrand.denizen.utilities.command.Command)

Aggregations

VersionScriptContainer (net.aufdemrand.denizen.scripts.containers.core.VersionScriptContainer)1 ScriptVersionChecker (net.aufdemrand.denizen.utilities.ScriptVersionChecker)1 Command (net.aufdemrand.denizen.utilities.command.Command)1