EntityOwner

Moved

Total Downloads: 7,293 - First Release: Jul 23, 2015 - Last Update: Dec 8, 2017

5/5, 25 likes
  1. Is it possible to auth users from console?
     
  2. @Calytic please help me with these error. It occured while I was trying to change ownership from myself to another player with the command /own all Gabriel (with steamId the same problem). Commands /unown all and /own all works fine.


    Code:
    [Oxide] 13:47 [Error] Failed to call hook 'cmdOwn' on plugin 'EntityOwner v3.0.2' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 13:47 [Debug]   at Oxide.Game.Rust.Libraries.Covalence.RustPlayerManager+<FindPlayers>c__AnonStorey1.<>m__0 (Oxide.Game.Rust.Libraries.Covalence.RustPlayer p) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[Oxide.Game.Rust.Libraries.Covalence.RustPlayer].MoveNext () [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable+<CreateCastIterator>c__Iterator0`1[Oxide.Core.Libraries.Covalence.IPlayer].MoveNext () [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable.Single[IPlayer] (IEnumerable`1 source, System.Func`2 predicate, Fallback fallback) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable.SingleOrDefault[IPlayer] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
      at Oxide.Game.Rust.Libraries.Covalence.RustPlayerManager.FindPlayer (System.String partialName) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EntityOwner.FindUserIDByPartialName (System.String name) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EntityOwner.cmdOwn (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EntityOwner.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0 
     
  3. Calytic

    Calytic Community Admin Community Mod

    Thanks for the report. This doesn't look like an issue with EntityOwner but I will look into it for you.
     
  4. I will be appreciate for your efforts! And thank you for quick answer!
     
  5. Hi so im stuck here, how can I get this to work properly with the removal tool using ownership of both structures and deployables. It seems to say people do not have permission even though removal is based off ownership and when prodding it gives the correct owner. If it helps I did have the BuildingOwners mod before this and RemovalTool was working fine
     
  6. The no permission to remove, is this only happening on deployables (EG TC's, Benches) or both deployables and building pre-fabs?
     
  7. @Calytic is there any progress in solving my error? Because player can`t do nothing with his house till I own it =((. Please.
     
  8. Calytic

    Calytic Community Admin Community Mod

    Sorry guys, I've been out of commission for 3 days due to some privacy/security issues. I assure you I'll get back to this plugin ASAP.
     
  9. Calytic

    Calytic Community Admin Community Mod

    Calytic updated EntityOwner with a new update entry:

    3.0.3

     
  10. Hi Calytic,

    Is it possible to see a R-Remover integration with this plugin? Rather than using buildingowners
     
  11. Calytic

    Calytic Community Admin Community Mod

    EntityOwner nor BuildingOwners is no longer technically required to do this.
     
  12. I meant for the ownership check, currently anyone with toolcupboard access can /remove the entire base down regardless if they own the foundation/entities. I currently use this over prod, so would make sense for the EntityOwner to have support with R-Remover
     
  13. Calytic

    Calytic Community Admin Community Mod

    Yes, I understand. I meant that RemoverTool needs to be updated to remove the BuildingOwners dependency as it is no longer needed to achieve the same effect.
     
  14. Thanks Calytic, i'm out of sync! Cheers :D
     
  15. Hi there.
    I am trying to call GetOwnerPlayer from this mod to get the baseplayer for a mod I am working on.
    I seem to be having troubles though as it doesnt seem to work, I have tried the hook way, but looking at the mod I dont see a hook, I have also tried this "BasePlayer _TargetWallOwner = GetOwnerPlayer(_entry);" But Micro Visual Studio says that doesnt exist.
     
  16. Calytic

    Calytic Community Admin Community Mod

    I only left GetOwnerPlayer in for backwards compatibility. The method itself is simple.

    Code:
    BasePlayer GetOwnerPlayer(BaseEntity entity)
    {
        return BasePlayer.FindByID(entity.OwnerID);
    }
    [DOUBLEPOST=1459393307][/DOUBLEPOST]And if you were calling GetOwnerPlayer from another mod either require EntityOwner or use EntityOwner.Call("GetOwnerPlayer",entity)
     
  17. Calytic

    Calytic Community Admin Community Mod

    This plugin relies solely on Rust and does not require any integration with any other plugins. Nor should it cause any conflicts (except with BuildingOwners, which is now defunct)
     
  18. how do i give myself permission to prod stuff
     
  19. make yourself admin of your server

    ownerid STEAMID "SteamName" "Reason"
    moderatorid STEAMID "SteamName" "Reason"
     
    Last edited by a moderator: May 13, 2016