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

[REMOVED] ReservedSlot

Comments in 'Plugin Releases' started by InusualZ, Sep 11, 2013.

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

    DA_Swagnemite Notable Member Plugin Developer

    Joined:
    Nov 17, 2013
    Posts:
    386
    Plugins:
    7
    Minecraft User:
    DA_SWAGNEMITE
    Is this made so that for example there are 8 slots and 2 reserved only 6 people can join or is it, with the same circumstances, all 8 can be filled but a random user is kicked when a reserved slot user joins?
  2. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    Yes, it work like you think, but this doesn't kick any user
    (@InusualZ correct me if I'm wrong)
  3. DA_Swagnemite
    Offline

    DA_Swagnemite Notable Member Plugin Developer

    Joined:
    Nov 17, 2013
    Posts:
    386
    Plugins:
    7
    Minecraft User:
    DA_SWAGNEMITE
    So, say there are 8 slots and 2 reserved only 6 people can join?
  4. InusualZ
    Offline

    InusualZ Active Member Plugin Developer

    Joined:
    Aug 23, 2013
    Posts:
    218
    Plugins:
    1
    Minecraft User:
    Inusu4lZ
    I need to update the plugin
  5. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    Yes, only 6 people can enter and only 2 VIP (in this case) can enter too
  6. InusualZ
    Offline

    InusualZ Active Member Plugin Developer

    Joined:
    Aug 23, 2013
    Posts:
    218
    Plugins:
    1
    Minecraft User:
    Inusu4lZ
  7. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
  8. InusualZ
    Offline

    InusualZ Active Member Plugin Developer

    Joined:
    Aug 23, 2013
    Posts:
    218
    Plugins:
    1
    Minecraft User:
    Inusu4lZ
    NP
  9. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    @InusualZ How we can configure how many VIP users can enter? For example if I set a global limit of 100 and only want 50 non-VIP and 50 VIP
    There's any way to set up something like this?
  10. InusualZ
    Offline

    InusualZ Active Member Plugin Developer

    Joined:
    Aug 23, 2013
    Posts:
    218
    Plugins:
    1
    Minecraft User:
    Inusu4lZ
    I think it is not necessary, because the VIP Member need to be on the list or be op and do not think you have more than 10 OPs. But I will add the feature
  11. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    I mean for VIP's, I will need to use an auto-op system when donating and rank-up at same time (I don't care of OP's because I use Kevin's GroupManager and it's the most secure rank system one :p )
  12. InusualZ
    Offline

    InusualZ Active Member Plugin Developer

    Joined:
    Aug 23, 2013
    Posts:
    218
    Plugins:
    1
    Minecraft User:
    Inusu4lZ
  13. InusualZ
    Offline

    InusualZ Active Member Plugin Developer

    Joined:
    Aug 23, 2013
    Posts:
    218
    Plugins:
    1
    Minecraft User:
    Inusu4lZ
    iksaku likes this.
  14. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    Thank you, so now this will work has I said in post #29? (Sorry for bother you :p )
  15. InusualZ
    Offline

    InusualZ Active Member Plugin Developer

    Joined:
    Aug 23, 2013
    Posts:
    218
    Plugins:
    1
    Minecraft User:
    Inusu4lZ
    Yes.
  16. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    Error when adding usernames to list:

    Error: array (
    'type' => 1,
    'message' => 'Call to a member function sendChat() on a non-object',
    'file' => '/plugins/ReservedSlot.php',
    'line' => 114,
    )

    Code:
    [105] if(!in_array($id, $this->config->get('user-list')))
    [106] {
    [107] $c = $this->config->get('user-list');
    [108] $c[] = $id;
    [109] $this->config->set('user-list', $c);
    [110] $this->config->save();
    [111] if($issuer instanceof Player)
    [112] console("[ReservedSlot] The username: {$id} have been added to the list.");
    [113] else
    [114] $issuer->sendChat("[ReservedSlot] The username: {$id} have been added to the list.");
    [115]
    [116] $p = $this->api->player->get($id);
    [117] if($p instanceof Player)
    [118] $this->entered++;
    [119]
    [120] return;
    [121] }
    [122]
    [123] if($issuer instanceof Player)
    [124] $issuer->sendChat("[ReservedSlot] The username: {$id} is already in the list.");
  17. InusualZ
    Offline

    InusualZ Active Member Plugin Developer

    Joined:
    Aug 23, 2013
    Posts:
    218
    Plugins:
    1
    Minecraft User:
    Inusu4lZ
    I will going to check. I forgot a '!'
  18. InusualZ
    Offline

    InusualZ Active Member Plugin Developer

    Joined:
    Aug 23, 2013
    Posts:
    218
    Plugins:
    1
    Minecraft User:
    Inusu4lZ
  19. decado
    Offline

    decado Active Member

    Joined:
    Dec 22, 2013
    Posts:
    59
    Minecraft User:
    decado
    Hi Guys

    I must be having a senior monent or we're getting lost in the langauge barrier. Maybe you can help.

    In a 20 player server I want one slot kept free for OP of any name
    and 19 slots free for normal players

    How should the config file below look please?

    Sorry to be a pain and thanks in advance

    ---
    plugin-version: 1.3
    list-size-limit: 0
    join-limit: 0
    kick-remove-list: false
    user-list: [ ]


    Regards
    Dec
  20. InusualZ
    Offline

    InusualZ Active Member Plugin Developer

    Joined:
    Aug 23, 2013
    Posts:
    218
    Plugins:
    1
    Minecraft User:
    Inusu4lZ
    if you are Op, you can join automatically
Thread Status:
Not open for further replies.

Share This Page

Advertisement