    001    package net.minecraft.src;
    002
    003    import java.util.concurrent.Callable;
    004    import net.minecraft.server.MinecraftServer;
    005
    006    public class CallableIsServerModded implements Callable
    007    {
    008        /** For checking if Minecraft Server is modded. */
    009        final MinecraftServer minecraftServerIsServerModded;
    010
    011        public CallableIsServerModded(MinecraftServer par1MinecraftServer)
    012        {
    013            this.minecraftServerIsServerModded = par1MinecraftServer;
    014        }
    015
    016        /**
    017         * Gets if Minecraft Server is Modded.
    018         */
    019        public String getServerIsModded()
    020        {
    021            String var1 = this.minecraftServerIsServerModded.getServerModName();
    022            return !var1.equals("vanilla") ? "Definitely; \'" + var1 + "\'" : "Unknown (can\'t tell)";
    023        }
    024
    025        public Object call()
    026        {
    027            return this.getServerIsModded();
    028        }
    029    }