Looping Through Permissions Problem

Discussion in 'Plugin Development' started by exload, Oct 19, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    exload

    I seem to having a problem with this loop:
    Code:java
    1.  
    2. for(String permNode : page.permissions)
    3. {
    4. if(player.hasPermission(permNode))
    5. {
    6. message.add(page.msg.get(temp));
    7. }
    8. temp++;
    9. }
    10.  

    (Ignore the ugly spacing.. :p)
    Even if the player does not have the permission permNode, it will still execute message.add(page.msg.get(temp));

    I believe I am missing something unbelievably simple yet I am unable to figure out what it is.. No errors in the console or in code. If you need any more information just ask.

    Thanks in advance!
     
  2. Offline

    KeybordPiano459

    I'm not great with for loops, but can I at least see your full code?
     
  3. Offline

    exload

Thread Status:
Not open for further replies.

Share This Page