package com.forgeessentials.multiworld;

public class MultiworldException extends Exception
{
	private static final long serialVersionUID = 1L;
	
	public static enum Type
    {
        ALREADY_EXISTS("A world with that name already exists"),
        NO_PROVIDER("No world provider %s found!"),
        NO_WORLDTYPE("No world type %s found!");

        public String error;
        private Type(String error)
        {
            this.error = error;
        }
    }

    public Type type;
    protected MultiworldException(Type type)
    {
        this.type = type;

    }
}

@@ -260,35 +260,41 @@
 ER(%22
-No world provider %25s found!
+There is no provider by that name
 %22),%0A
@@ -315,17 +315,26 @@
 LDTYPE(%22
-N
+There is n
 o world 
@@ -342,17 +342,20 @@
 ype 
-%25s found!
+by that name
 %22);%0A

Fix client crash caused by %s in the exception message.