(Skungee) Permission is not an item type?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Experical

New Member
Apr 26, 2020
6
0
1
31
This is my code:
Code:
command /glist2:
  trigger:
    loop all bungeecord players:
      if loop-player has permission "staff.show": # Problem here
        add loop-player to {_staff::*}
        loop all bungeecord servers:
          add all bungeecord players on server "%loop-value%" to {_players::*}
          set {_size.hub} to size of bungee players on "Hub"
          set {_size.hub} to size of bungee players on "Hub"
          set {_size.kitpvp} to size of bungee players on "KitPvP"
          set {_size.skylands} to size of bungee players on "SkyLands"
          set {_size.event} to size of bungee players on "Event"
          send "&4&lTotal Online &7- &c%{_players::*}%"
          send "&4Hub &7- &c%{_size.hub}% online players"
          send "&4KitPvP &7- &c%{_size.kitpvp}% online players"
          send "&4SkyLands &7- &c%{_size.skylands}% online players"
          send "&4Event &7- &c%{_size.event}% online players"
          send "&8(&cOnline Staff&8)&7: %{_staff::*}%"

It says https://cdn.discordapp.com/attachments/692420764779020338/704874329317441596/unknown.png
when I reload it and I cant figure out why...

Thanks in advance
 
Not shure seems like loop-player is not supported gonna check source if available u can temp use this as fix

Code:
command /players:
    trigger:
        set {_players::*} to all bungeecord players
        loop {_players::*}:
            if loop-value has permission "staff.show": # Problem here
                add loop-value to {_staff::*}
 
So this should work then.
Code:
command /players:
  trigger:
    set {_players::*} to all bungeecord players
    loop {_players::*}:
      if loop-value has permission "staff.show":
        add loop-value to {_staff::*}
        loop all bungeecord servers:
          add all bungeecord players on server "%loop-value%" to {_players::*}
          set {_size.hub} to size of bungee players on "Hub"
          set {_size.hub} to size of bungee players on "Hub"
          set {_size.kitpvp} to size of bungee players on "KitPvP"
          set {_size.skylands} to size of bungee players on "SkyLands"
          set {_size.event} to size of bungee players on "Event"
          send "&4&lTotal Online &7- &c%{_players::*}%"
          send "&4Hub &7- &c%{_size.hub}% online players"
          send "&4KitPvP &7- &c%{_size.kitpvp}% online players"
          send "&4SkyLands &7- &c%{_size.skylands}% online players"
          send "&4Event &7- &c%{_size.event}% online players"
          send "&8(&cOnline Staff&8)&7: %{_staff::*}%"
 
You cant get the spigot permissions from bungee players, because yeah, you are looping bungee players.
 
I want it say which staff are online, how would I do that if I cant do permission?
 
Status
Not open for further replies.