package me.ryanw.overcaststats.api;
/*
 * This file is part of OvercastStats, licensed under the MIT License (MIT).
 *
 * Copyright (c) Ryan W
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
public enum Gender {

    MALE, FEMALE, UNKNOWN;

    public static Gender determineGender(String gender) {
        if (gender.equalsIgnoreCase(MALE.name())) return MALE;
        if (gender.equalsIgnoreCase(FEMALE.name())) return FEMALE;
        return Gender.UNKNOWN;
    }
}

@@ -1313,22 +1313,21 @@
 (String 
-gender
+input
 ) %7B%0A    
@@ -1334,63 +1334,45 @@
     
-i
 f
+or
  (
-g
+G
 ender
-.equalsIgnoreCase(MALE.name())) return MALE;%0A
+ gender : values()) %7B%0A    
     
@@ -1386,16 +1386,23 @@
 (gender.
+name().
 equalsIg
@@ -1414,38 +1414,73 @@
 ase(
-FEMALE.name())) return FEMALE;
+input)) %7B%0A                return gender;%0A            %7D%0A        %7D%0A
 %0A   
@@ -1507,16 +1507,17 @@
 NKNOWN;%0A
-
     %7D%0A
+%0A
 %7D%0A

Update Gender.java