Building Owners

Sets owners of houses when someone builds a house part

Total Downloads: 12,029 - First Release: Apr 3, 2015 - Last Update: Jul 30, 2016

5/5, 23 likes
  1. Continues, but no spamming
    Code:
    [Oxide] 11:16 AM [Error] Failed to call hook 'OnEntityBuilt' on plugin 'Building Owners' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 11:16 AM [Debug]   at Oxide.Plugins.BuildingOwners.OnEntityBuilt (.HeldEntity heldentity, UnityEngine.GameObject gameobject) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: Mar 31, 2015
  2. I was hoping for Signs support :p That's why I added a signs check to the one I posted here http://oxidemod.org/threads/building-owners.5844/page-15#post-75303 :p
    [DOUBLEPOST=1427469458][/DOUBLEPOST]
    Could you check the version of your Oxide by using the version command in your console/rcon client?
     
  3. Ohh, yeah. That was the problem. I forgot to update oxide xDD. Thank you Mughishi
    [DOUBLEPOST=1427470117][/DOUBLEPOST]Yep, now it works. Thanks again.
     
  4. yeah i saw where the sign was, but no need to put addition checks if we are not yet using the sign support :p
    [DOUBLEPOST=1427473025][/DOUBLEPOST]and mughisi, i'm not editing the plugin, so if you want to take it over and make the things ou want with it you are more then welcomed ;)
     
  5. I tried this on a foundation that I spawned with the Build command and while it comes up and says that I was given ownership by an admin (ie me) when I use /prod on it it says no owner found.
     
  6. Can you use à simple /remove on it?
     
  7. Why would I want to /remove it? I'm wanting to be able to build and can't!

    The point is this mod isn't working for me with items spawned by using the Build command. /prod says no owner found even though I did /changeowner on the /spawn foundation
     
  8. The building owners plugin is not capable of detecting that foundations or any other building blocks are being spawned as it is not actually issued by the player so the hook isn't triggered to save the data. Technically a plugin reference could be added to building owners and after a block is spawned a call could be made to it to also trigger it of setting an owner.
     
  9. I'm just wondering why, when I spawn a foundation with the Build command /spawn foundation and then look at it and type /changeowner Comixfan and it tells me that it's changed to me, when I type /prod it says no owner found?

    That's what I'm asking.
     
  10. The changeowner command is only able to change the owner if an owner is present so it's somewhat a flaw, I'll try and have a look at it when I get some time.
     
  11. Ah, I see. So if something is spawned or created with the /build command, it has no owner?
     
  12. Exactly, when I have time I'll try and have a look on how this could be added.
     
  13. I keep getting this error message. This plugin worked before the last update. I've tried unloading then reloading restarting server then reloading, but no same error message. Players are unable to use remover tool because of this.
    Code:
    [Oxide] 10:22 PM [Error] Failed to call hook 'OnEntityBuilt' on plugin 'Building Owners' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 10:22 PM [Debug]   at Oxide.Plugins.BuildingOwners.OnEntityBuilt (.HeldEntity heldentity, UnityEngine.GameObject gameobject) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    [Oxide] 10:22 PM [Error] Failed to call hook 'OnEntityBuilt' on plugin 'Building Owners' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 10:23 PM [Debug]   at Oxide.Plugins.BuildingOwners.OnEntityBuilt (.HeldEntity heldentity, UnityEngine.GameObject gameobject) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
     
  14. Have you updated your plugin as this was the error that was appearing after the patch so an update was released here.
     
  15. Oxide] 3:57 PM [Error] Failed to call hook 'OnEntityBuilt' on plugin 'Building Owners' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 3:57 PM [Debug] at Oxide.Plugins.BuildingOwners.OnEntityBuilt (.HeldEntity heldentity, UnityEngine.GameObject gameobject) [0x00000] in <filename unknown>:0
    at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
    at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
     
  16. I just changed ownership of a building for a player who was online, and they're still unable to build. I changed it to me and I can't build either.
     
  17. Building owners isn't to build, but to remove and prod the owner (know who owns à building)
    Also works for setting home.
    Being allowed to build is only via tool cupboards
     
  18. There is a cupboard down and regardless of who is auth'd on it and given ownership, they can't build in this specific building.
     
  19. If you are using the Fly plugin, it scraps the permissions somehow.
     
  20. Wasn't using Fly (build plugin has better flying!) but good to know, thanks!