package me.semx11.autotip.api.reply;

import java.util.Collections;
import java.util.List;
import me.semx11.autotip.api.util.RequestType;

public class TipReply extends AbstractReply {

    private List<Tip> tips;

    public TipReply() {
    }

    public TipReply(boolean success) {
        super(success);
    }

    private TipReply(List<Tip> tips) {
        this.tips = tips;
    }

    public static TipReply getDefault() {
        return new TipReply(Collections.singletonList(new Tip("all", "")));
    }

    public List<Tip> getTips() {
        return tips;
    }

    @Override
    public RequestType getRequestType() {
        return RequestType.TIP;
    }

    public static class Tip {

        private String gamemode;
        private String username;

        private Tip() {
        }

        private Tip(String gamemode, String username) {
            this.gamemode = gamemode;
            this.username = username;
        }

        public String getGamemode() {
            return gamemode;
        }

        public String getUsername() {
            return username != null ? username : "";
        }

        public String getAsCommand() {
            return "/tip " + (username != null ? username + " " : "") + gamemode;
        }

        @Override
        public String toString() {
            return getUsername() + " " + getGamemode();
        }

    }

}

@@ -84,16 +84,42 @@
 l.List;%0A
+import java.util.Objects;%0A
 import m
@@ -1213,32 +1213,85 @@
 ip %22 + (
-username != null
+!Objects.equals(username, %22%22) && username != null%0A                   
  ? usern

Bump 2.1.0.3 beta release - ha