Solved Problem with booleans

Discussion in 'Plugin Help/Development/Requests' started by iClaw, Apr 29, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    iClaw

    Code:
    public boolean hasClan(Player p){
            if(c.getString(p.getName() + ".clan-name") != null){
                return true;
            }
            return false;
        }
    That doesn't seem to work for me. What am i doing wrong? It always returns false even if the ".clan-name" is not null

    Wow i was really stupid i fixed it myself :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 12, 2016
Thread Status:
Not open for further replies.

Share This Page