Night Door

Allows opening of selected door(s) only during set time period

Total Downloads: 416 - First Release: Nov 8, 2017 - Last Update: Jun 25, 2018

5/5, 4 likes
  1. @Slydelix
    Really??
    Free pickups for ALL^^
    Code:
    private bool CanPickupEntity(BaseCombatEntity entity, BasePlayer player)
    {
        if (storedData.IDlist.ContainsKey(entity.net.ID))
            return false;
        else return true;
    }
    No wonder why i do'nt find the issue in my code...man...who told you return true is good???
    Please change asap to:
    Code:
    private object CanPickupEntity(BaseCombatEntity entity, BasePlayer player)
    {
        if (storedData.IDlist.ContainsKey(entity.net.ID))
            return false;
        return null;
    }
     
  2. I've just recently found out how shit bool is and this is pure example of it... I will fix this asap
     
    Last edited by a moderator: Apr 25, 2018
  3. Slydelix updated Night Door with a new update entry:

    1.7

     
  4. [LITTLE_CORRECTION]lang/en
    line 8 : "PlayerCannotOpenTime", there was an inversion between the values,
    and so in the printed sentence (something like 'this 21:00 is locked until sheet metal door)
     

    Attached Files:

  5. I just checked, in the plugin by default it is
    Code:
    {"PlayerCannotOpenTime", "This {0} cannot be opened until {1}"},
     
  6. isnt it better this way ?
    "PlayerCannotOpenTime": "This {1} cannot be opened until {0}",
     
  7. Ooh I just noticed what was happening, I'll update the plugin
     
  8. Slydelix updated Night Door with a new update entry:

    1.7.1

     
  9. [LANG/FR] french lang version
    if ever you want to include it
    Thank you !

    added translated sentences for config and lang in .cs
    to help you as possible
     

    Attached Files:

    Last edited by a moderator: Jun 11, 2018
  10. I'll add these when I can
     
  11. Hello Slydelix
    sorry for my english

    While researching for my need to restrict access to doors (which does not exist), I find that your plugin could be even bigger if it could manage access by oxide groups.

    With the options you've created, if you can add door access management by user groups (or betterChat groups), and mixed with 'offline door', your plugins will then become 'Door Manager'

    It does not miss a lot to achieve this goal. For example :
    1-To not manage the gate access time (in game) = / timeperiod create <name> <00:00> <00:00> (Done)
    2-To give permission to access a group, outside period = oxide.grant group <group> nightdoor.bypass (Done)
    3-To give permission to access a group, out of period, for a gate to set = oxide.grant group <group> nightdoor.bypass.door_name_xx (complicate to do?)

    What do you think ?
     
  12. So a permission would be tied to 1 door and everyone who has that permission can open that 1 door?
     
  13. absolutely.
    This management allows several uses:
    - Manage access to events
    - Reserve access to members (Admin, VIP, etc.)
    - Sell a privilege access (Economics + GUI Shop)
    -...
    In short, imagination is limitless