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("There is no provider by that name"),
        NO_WORLDTYPE("There is no world type by that name");

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

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

    }
}

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;

    }
}

--- 
+++ 
@@ -7,8 +7,8 @@
 	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!");
+        NO_PROVIDER("There is no provider by that name"),
+        NO_WORLDTYPE("There is no world type by that name");
 
         public String error;
         private Type(String error)
[multiworld] Fix client crash caused by %s in the exception message.