Vault + Prefix + PEX + SQL = DEAD

Discussion in 'Spigot Plugin Development' started by ula492, Jun 25, 2016.

  1. So I have the following code in my plugin:
    Code (Text):
            String group =;
            String Prefix =, group);
    So when I enable SQL on PEX Config, and run the server with my plugin in the server... It completely dies. It does not show the Prefix's and the scoreboard goes away. Any fix ideas?
  2. When are you running the code?

    Sent from my iPhone using Tapatalk
  3. Scoreboard and tab, so when a player joins it sends them a scoreboard and it sends them tab samething when they leave. But the prefix does work with "file" and not "sql"
  4. Try executing the code 20 ticks later (1 second)

    Sent from my iPhone using Tapatalk
  5. It
    Nothing, the scoreboard does lag a lot doe :p.
  6. Try to get directly from PEX, not from Vault...
  7. Is your database connection succeeding?
  8. Yes it is.
  9. No Successs
  10. Code (Text):
            Score score6 = obj.getScore("§6§l> §6§lRank");

            Score score7 = obj.getScore("" + prefix);

           PermissionUser user = PermissionsEx.getUser(p);
            String prefix = user.getPrefix(p.getWorld().getName());