All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.parzivalExe.guiApi.antlr.converter.PathOriginConverter.kt Maven / Gradle / Ivy

Go to download

With GuiAPI you can create Guis for your Bukkit/Spigot-Plugin in seconds while at the same time saving many lines of code

The newest version!
package io.github.parzivalExe.guiApi.antlr.converter

import io.github.parzivalExe.guiApi.PathOrigin

class PathOriginConverter : Converter {


    override fun attributeStringToValue(attrString: String, defaultValue: Any?): Any =
        if(attrString.equals("PC_ORIGIN", true))
            PathOrigin.PC_ORIGIN
        else if(attrString.equals("SERVER_ORIGIN", true))
            PathOrigin.SERVER_ORIGIN
        else
            PathOrigin.PROJECT_ORIGIN


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy