Anyone able to add owner of raid as friend to get accessFixed
When this option
"Lock Raid To Buyer And Friends": true,​

and those

        "Eject Enemies From Purchased PVE Raids": true,
        "Eject Enemies From Purchased PVP Raids": true,

are set, anyone can just add the owner of the raid to friend list and get the access to raid-base. There is no confirmation needed to add someone as a friend, so it's pretty wrong. You probably should check if the player which is trying to get into base-zone is in owner's list, not on the contrary. So only if owner of the base-event will add someone to his friend-list then he will be allowed to get into

thanks, fixed in next update
Can you also, please, tell me if there is a way to get all scheduled raid-bases pvp only, and private bought-ones pve? I want all "public" raids were pvp and everyone were able to fight there for their loot, but when someone pays for the raid, it should be private. How can I manage that? Seems like if I add a type of "pve" to list for being available for buying, those bases will appear in sheduled also?
Sorry for my bad english, hope you can understand :)
 
Scheduled Events > Convert PVE To PVP > true
Issue stell exists. The player can remove and then readd owner to friends and still got access. Let me know if I can help to figure it out somehow.
P.S. restarted plugin 2 times, but not restarted server after plugin update. Maybe restarting server will fix it? Can't restart atm, have some players online
it only checks if the owner has the player as the friend now. your update must've not installed properly. download 1.4.6, delete the .cs in your plugins folder and install again
12:44 [Info] Unloaded plugin Raidable Bases v1.4.5 by nivex
12:44 [Info] Loaded plugin Raidable Bases v1.4.6 by nivex
13:21 [Info] Unloaded plugin Raidable Bases v1.4.6 by nivex
13:22 [Info] Loaded plugin Raidable Bases v1.4.6 by nivex

My friend list was empty when tested. When I bought raid the player had me in his friend list and had no access. Then he deleted me from his list and added back this way he was able to get into raid-zone.

replace:

public void UpdateFriends(string playerId, string targetId, bool added)

and all of it's code, with:

            public void UpdateFriends(string playerId, string targetId, bool added)
            {
                List<string> playerList;
                if (_friends.TryGetValue(playerId, out playerList))
                {
                    if (added)
                    {
                        playerList.Add(targetId);
                    }
                    else playerList.Remove(targetId);
                }
            }​


and let me know. I missed the 2nd check. this is why additional info is always good :p
Yes, now it's fixed. Thanks for your hard work! <3
Locked automatically