Package net.aufdemrand.denizencore.utilities.javaluator

Examples of net.aufdemrand.denizencore.utilities.javaluator.DoubleEvaluator


    // -->
    @EventHandler
    public void mathTag(ReplaceableTagEvent event) {
        if (!event.matches("math", "m")) return;
        try {
            Double evaluation = new DoubleEvaluator().evaluate(event.getValue());
            event.setReplaced(new Element(String.valueOf(evaluation)).getAttribute(event.getAttributes().fulfill(1)));
        }
        catch (Exception e) {
            dB.echoError("Invalid math tag!");
            event.setReplaced("0.0");
View Full Code Here

TOP

Related Classes of net.aufdemrand.denizencore.utilities.javaluator.DoubleEvaluator

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.