Solved Scoreboard Permissions (Help!)

Discussion in 'Spigot Plugin Help' started by DiamondGenerator, May 29, 2017.

Thread Status:
Not open for further replies.
  1. hey!

    so i'm coming across an issue with permissions with scoreboards.

    So I setup a scoreboard plugin, where it displayed your name, rank & server you are on. It works fine, although when it comes to your rank it's different. I made the plugin check for a permission, and if you have that permission, it will display whatever I put on the scoreboard. It works perfectly fine, but for us big guys who are owners & admins who have all permissions, this will come up: https://prnt.sc/fd70w5

    Here is my src: https://hastebin.com/cisekohove.swift

    Didn't post entire source code, but you can get the point.

    I honestly think it's a plugin.yml thing where I have to insert something in their, but I don't have anything in it besides name author and version.

    Hope you can help.
     
  2. You could add a check for all the non-owner ones like "&& notOwner"
     
  3. do you have an example of that?
     
  4. Another idea I had was ordering your if statements in position from highest rank to lowest rank, and returning a value at the end of each one to stop the rest of the if statement checks.

    NOTE: It doesn't have to be a return statement. For example say it was in a for loop, you could use the "continue;" statement.

    Like so:
    https://ghostbin.com/paste/hnk3d
     
  5. Can you give me the function where that code is written in?
     
Thread Status:
Not open for further replies.