Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to get a players group

Comments in 'Plugin Development' started by warnematt, Nov 2, 2013.

  1. warnematt
    Offline

    warnematt New Member

    Joined:
    Nov 2, 2013
    Posts:
    30
    Minecraft User:
    Matt
    I'd like to know how to check and see if the player has a certain group. Im using groupmanger, also, I wanna know how to get all players, maybe some sort of foreach thing?
  2. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,707
    Plugins:
    22
    Minecraft User:
    Falkirknh
    For the second one, Do you mean how to get all players online or all players with files associated with them?
  3. warnematt
    Offline

    warnematt New Member

    Joined:
    Nov 2, 2013
    Posts:
    30
    Minecraft User:
    Matt
    I mean get all the players online.

    If I was doing this for San Andreas Multiplayer (pawn script, im used to that type :p)

    I can do like

    foreach new i:player

    It gets all of the players that is online, I wanna do that, then I wanna check and see if theyre in a certain group
  4. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,707
    Plugins:
    22
    Minecraft User:
    Falkirknh
    warnematt likes this.
  5. warnematt
    Offline

    warnematt New Member

    Joined:
    Nov 2, 2013
    Posts:
    30
    Minecraft User:
    Matt
  6. warnematt
    Offline

    warnematt New Member

    Joined:
    Nov 2, 2013
    Posts:
    30
    Minecraft User:
    Matt
    What about the permissions? Is there a way to check it? I wanna make a custom chat for admins to talk through, but I want it to be if they have permission to, NOT op...so is it maybe possible to create a permission node and check if they have access to use that node?
  7. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,707
    Plugins:
    22
    Minecraft User:
    Falkirknh
    You should look at the plugin source code, I think it is easily possible just may take some looking

Share This Page

Advertisement