SharedDoors

Sharing doors with friends via the tool cupboard.

Total Downloads: 4,459 - First Release: Aug 30, 2016 - Last Update: Dec 8, 2017

5/5, 7 likes
  1. dbteku updated SharedDoors with a new update entry:

    0.5.0

     
  2. Thanks again for making the tweaks, my people love this plugin, it's way simpler than DoorShare, I dunno WTF that guy's thinking with the direction he's taking that plugin lol.
     
  3. To be fair, I'm going to school to become a software engineer and I'm almost done. So we might not be completely equal when it comes to coding. :p
     
  4. Master Mode currently isn't working on doors, and just says "It is locked..." when trying to open box.

    unsure about rest of the plugin's functions.
     
  5. Ill check it out.
     
  6. Wulf I'm not really sure whats going on but my plugin was working 100% yesterday and with the new update to oxide, oxide no longer calls CanUserDoor when someone uses a door. This is the base of my plugin so help me understand what happened?
     
  7. Wulf

    Wulf Community Admin

    Release Changelog | Page 6 | Oxide
     
  8. Last edited by a moderator: Nov 4, 2016
  9. Wulf

    Wulf Community Admin

    Technically the same as it has been, just use BaseLock instead of the others that are based on it.
    Code:
    bool CanUseLock(BasePlayer player, BaseLock @lock)
     
  10. I'm still not getting a puts from it.

    This is code basically.


    Code:
            bool CanUseLock(BasePlayer player, BaseLock @lock)
            {
                BaseLock door = @lock;
                Puts("CAN USE DOOR");
                IPlayer iPlayer = covalence.Players.FindPlayerById(player.userID.ToString());
                bool canUse = false;
                if((player.IsAdmin() && holders.IsAKeyMaster(player.userID.ToString())) || (iPlayer.HasPermission(MASTER_PERM) && holders.IsAKeyMaster(player.userID.ToString())))
                {
                    canUse = true;
                }else
                {
                    canUse = new DoorAuthorizer(door, player).canOpen();
                }            return canUse;
            }
     
  11. Wulf

    Wulf Community Admin

    You don't have to make a var for door to @lock, if you want to name it door just replace @lock with door. :p

    It was working fine when I tested it before pushing, but I'll test again.
     
  12. Okay, I was unfamiliar with the @ in front of a variable. I downloaded the latest oxide about an hour ago and updated my server to it I cant get it to pop a puts.
     
  13. Wulf

    Wulf Community Admin

    The @ allows you to use a name if that is also used for something else.
     
  14. Yeah I forgot lock was a keyword for synchronization on threads.
     
  15. Wulf

    Wulf Community Admin

    For some reason it isn't triggering for me now, so going to restore the other 4 locations I removed it from and see if it works again. Might have missed something when testing.
     
  16. Sounds good.
     
  17. Wulf

    Wulf Community Admin

    Should be good to go now with the latest.
     
  18. Thank you sir. Much Appreciated.
     
  19. Ok so an oxide update will fix the issue?
     
  20. No it wont. Im currently implementing a hot fix. You will still have to update Oxide in order for it to work however.