Solved Vault

Discussion in 'Spigot Plugin Development' started by Creepermanthe3rd, Jun 4, 2017.

Thread Status:
Not open for further replies.
  1. Im makin a set rank command using groupmanager, but this isnt working.
    Code (Text):

                        String[] groups = main.perm.getGroups();
                        if(!groups.toString().contains(args[0])) {
                            p.sendMessage(main.prefix + main.color("&cthat rank does not exist!"));
     
    It says the rank dont exist even though it does 100% (i even did case sens.) But I created a test rank and right after I did then I coudl set their rank to the test rank I created. What should I do
     
  2. Why do you convert the String array into a String? ("groups.toString()")
     
  3. Well, was testing and if i send player msg the groupos w/o the to string. But if it is to string it says random shit. But how do I check if the rank exist becuase without .toString i cant check contains or anything
     
  4. https://gyazo.com/417840d514a381cf9d1e01b433189244
     
Thread Status:
Not open for further replies.