Package com.sk89q.worldedit.extension.platform

Examples of com.sk89q.worldedit.extension.platform.PlatformManager


    )
    public void version(Actor actor) throws WorldEditException {
        actor.print("WorldEdit version " + WorldEdit.getVersion());
        actor.print("https://github.com/sk89q/worldedit/");

        PlatformManager pm = we.getPlatformManager();

        actor.printDebug("----------- Platforms -----------");
        for (Platform platform : pm.getPlatforms()) {
            actor.printDebug(String.format("* %s (%s)", platform.getPlatformName(), platform.getPlatformVersion()));
        }

        actor.printDebug("----------- Capabilities -----------");
        for (Capability capability : Capability.values()) {
            Platform platform = pm.queryCapability(capability);
            actor.printDebug(String.format("%s: %s", capability.name(), platform != null ? platform.getPlatformName() : "NONE"));
        }
    }
View Full Code Here

TOP

Related Classes of com.sk89q.worldedit.extension.platform.PlatformManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.