1. Same problem here also.

    I found in the log this error too:
    Code:
    10:50 PM [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'Admin v1.0.2'
    File: Admin.lua Line: 229 attempt to call method 'ToPlayer' (a nil value):
      at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
      at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
      at NLua.Lua.CallFunction (System.Object function, System.Object[] args) [0x00000] in <filename unknown>:0
      at NLua.LuaFunction.Call (System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Ext.Lua.Plugins.LuaPlugin.OnCallHook (System.String hookname, 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 
     
  2. Good plugin so far, testing and seems to work really well. I have a few suggestions plucked from other plugins and from personal experience that I hope you'll consider.

    Don't add any airdrop support to this plugin, nor helicopter spawning etc. There are other plugins that handle this really well and if an update breaks this plugin, its a lot of functionality to lose.

    Similarly I would not add kick/ban to this either, there are good plugins that handle this and having to toggle into admin to kick someone seems counter-productive.

    I like the functionality you've already added, such as building perms bypass and door bypass, this is good, I also like the multiple perms, good thinking.

    It would be good if you could add a /heal /feed and /cure to this as in other plugins that always seem to break.

    Also it would be good if this gave the option to add a prefix to the name when in Admin mode.

    Thanks for reading!
     
  3. Thanks a lot for your feedback and suggestions.

    You're most likely right about that. However, if I were to add kick/ban it would still be usable even if you weren't in Admin Mode (as long as you have the permission - maybe even CanKickIfNotInAdminMode for both things).

    After fixing the 2 current issues I will look into /heal, /cure and the Admin Tag thing.
     
  4. Wulf

    Wulf Community Admin

    It'd use the same code, so it'd break just as the others would. The other just hasn't been updated yet since the original author abandoned it.
     
  5. Yes.. good point >_< I wasn't criticising other plugin developers, I know they do the best with what they can!

    That makes more sense, I guess as long as we could customise the /kick command so it doesn't conflict if we choose to use another plugin to manage it. I have noticed though that the plugin appears to continue to over-ride tool cupboards even when not in admin mode. Is this by design?
     
  6. That's a mistake, but I just checked the code and it'll be easy to fix.
     
  7. Code:
    [Oxide] 11:44 PM [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'Admin v1.0.2' File: Admin.lua Line: 229 attempt to call method 'ToPlayer' (a nil value):   at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0   at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0   at NLua.Lua.CallFunction (System.Object function, System.Object[] args) [0x00000] in <filename unknown>:0   at NLua.LuaFunction.Call (System.Object[] args) [0x00000] in <filename unknown>:0   at Oxide.Ext.Lua.Plugins.LuaPlugin.OnCallHook (System.String hookname, 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
    ????
     
    Last edited by a moderator: Nov 2, 2015
  8. Educated guess would be an old version of oxide?
     
  9. Wulf

    Wulf Community Admin

    The ToPlayer() function is not from Oxide, it's from Rust.
     
  10. How would I go about adding myself to the admin list so I can use the /admin command ingame?
     
  11. You can either use Oxide's permission system which is recommended or the AuthLevels which are on by default.

    It uses AuthLevel 2 permissions by default

    Granting users authlevels by running console commands
    Authlevel 2:
    ownerid <steamid> "player name" "reason"
    Authlevel 1: moderatorid <steamid> "player name" "reason"


    Oxide's permission system

    To assign a permission use the console command oxide.grant user username/steamid permission

    Ex. oxide.grant user YourSteamID admin.use
     
  12. I'm trying to wipe the master set, but even with admin.master on my admin group and my person, it won't let me, So I try to do a fresh install;

    Disable admin mode,
    Unload plugin,
    Delete plugin file, config file and UltimateAdmin folder from data
    Upload fresh version of plugin,
    Load it.

    It then somehow restores all previous settings?
     
  13. Doesn't keep godmode after logging out, going back to my old god plugin until this is taken care of.
     
  14. I haven't forgotten about the plugin, I am just busy these days as I am moving.

    You can expect an update soon.
     
  15. Are you able to change your alias to another name when switching between admin and player? If not i think this would be a fantastic feature to add.
     
  16. this seems to need updated with the new rust..the owner/admin ids arent staying saved anymore.
     
  17. Wulf

    Wulf Community Admin

    I doubt the Rust update would have broken that.
     
  18. so i guess just injecting your old mod datas back into the folders (data, config,plugin) isnt all that great then...half my mods are no longer working. Suppose I should just wipe and reload them all?
     
  19. any idea on why my ownerid and moderator id's arent saving when I add them through the Rusty recon? I go to use /admin and it says I dont have permission, I then have to re-add myself everytime I join back. I've did a complete wipe of the server, reinstalled the mod, set my owner id/moderators ids, even changed the config file of the admin mod to permission level 1...reloaded the mod. The owner id is showing up on the owners list in the data folder. Not too sure what broke it, or why I cant get it to work correctly and save myself as the owner without having to re-add myself everytime I join.