DynamicCupShare

DynamicCupShare 3.1.10

  • Fix for NRE at "CanUseLockedEntity"
  • Mutual Fix for NRE at "OnFriendRemoved"
  • Fix for NRE at player disconnect
  • Optimized again the cupboard processing to be more precise
  • The adminmode cupboard accessing does now also include the removal of authed cupboards while the player was in adminmode
    > This way the "addAdminsToCupboards" switch was removed again
  • Like
Reactions: dak0za
  • The cupboard authorization process was overhauled to be more instant and reliable
  • This should mainly affect those cases where players are not authed on cupboards placed near them being in range of these cupboards even when the ownerplayer had autoauth on.
  • It should affect those cases where players come from one cupboard range into another range and where not instant authed on these cupboards.
  • Added a switch for the admin-mode to enable physical adding of admins to any cupboard in range while in admin-mode.
    > Functions > addAdminsToCupboards (default: false)
  • Fixed a bug on the command for deactivation of turret sharing for friends
  • Fixed a bug in the "/share c" command usage producing an InvalidCastException error.
  • Optimized some code parts in combination with incoming hooks from Clans REBORN
  • Added some small delay to let the plugin wait for Clans/Friends to load successfully into the server.
    pluginDelayOnFreshStart > 2.0 (seconds)
  • removed "blockBuildIntoBlocked" until i do add something back for twig blocking (and similar game-changes from last time)
Due to too many changes in the last time to the Build and Place system in Rust and too many implemented security restrictions, i decided to re-design the whole cupboard-sharing part of the plugin.

Before it worked all complete on a dynamic way, players were granted only temporary to access the cupboard area. This did not work anymore in a 100% way until a new hook was implemented.
But to avoid any future issues with coming system changes, it makes no sense to keep the system working like that.

The plugin does now add anyone how has shared rights physically to each cupboard whitelist, when the cupboard owner has enabled sharing and he is a friend or member of the clan.

For Friends(API), the removal of a friend works out of the box, the friend gets removed from each of the players cupboard whitelists.

For Clans, it works ONLY with ClansREBORN to remove players from each others cupboards, when a players got kicked, he left, or the clan was removed or disbanded. The public Clans version does miss the return of the needed informations to let it work with.
The sharing itself works with every Clans version.

The current code is tested as good as possible to guarantee the most possible user experience, but needs for sure some finetuning afterwards in small parts, which i did not see while testing/coding.