1. That has never been a part of my plugin.
     
  2. xD ...

    first to say. Great plugin. i was looking for long now for a plugin that make the work easyer when you want to switch from play to work .
    Great plugin so far ! :D

    would be cool when u could add it, when im switching to admin mode my group automaticly change?
    from player to admin oxidegroup?

    and- i know you cannot switch authlvl just in game- you have to relogg but is it maybe possible to "block" the noclip, specate, and the Admin give from item menu, when u are in playermode? would be also cool :D
     
  3. Wulf

    Wulf Community Admin

    There's no way to block noclip, but you can with spectate and give as they are just commands.
     
  4. Thanks for the update and thanks for the speedy work. you're the best :)
     
  5. Hello ! Great mod !

    Have a question : I've setup a Group, added admin.master permission, and i've added myself into that group.
    when i do /admin ingame i just get the " No permission".

    How should i deal with this ? I do not want to set myself as owner/admin on the server, because i play my also, and don't want the admin powers meanwhile / + admin name :(

    Cheers
     
  6. Wulf

    Wulf Community Admin

    What are the exact commands you used? Also, the "admin" group exists by default with Oxide's permissions, you just need to add yourself to it if you aren't already set as an owner in Oxide, otherwise you're automatically in that group as well.
     
  7. there is no chat mute plugins out there so maybe you could add that feature?
     
  8. Thanks alot :O i have searched for one that worked for ages :)
     
  9. oxide.group add adminpower
    oxide.grant group adminpower admin.master
    oxide.usergroup add MYNAME adminpower

    I have even tried to make it single permission by this :

    oxide.grant user MYNAME admin.master

    I saved data after, tried restart

    and i see i have the permission, i just still can't do it.

    I know that its possible to add myself as owner/admin, but i'd rather not do that, cause it changes my name color + it would be nice to go undercover. Remember i play on the server also, like a regular player.
     
    Last edited by a moderator: Oct 29, 2015
  10. I don't think my plugin is loading the config values properly, I'll look into it.
     
  11. Wulf

    Wulf Community Admin

    You did way more than needed, you'd only need one of these, depending on if you want it for only you or all admins:
    grant user MYNAME admin.master
    grant group admin admin.master

    This plugin has an odd setup though, where it uses both auth level and permissions by default. I'm not sure why plugins still use auth levels...
     
  12. Mathias updated Ultimate Admin with a new update entry:

    1.0.2


    [DOUBLEPOST=1446152077][/DOUBLEPOST]
    The Oxide permission system is great, but I added both ways so the users can choose whatever they prefer.

    Also, if you already have the required AuthLevel and you use that, then you don't have to grant every permission to the admin(s) of the server.
     
  13. when im changing back to player mode..i still have godmode?

    Edit: sorrry im not in godmode. but.. I get no Cold or other things anymore......

    Edit2: This is now Permanent... even when im revoking all permissions thats in thePlugin.
    and remove the plugin. and Die . i get no cold. hunger etc...
     
    Last edited by a moderator: Oct 30, 2015
  14. Sounds like it's not properly restoring the metabolism values, I'll try to fix it.
    [DOUBLEPOST=1446209927][/DOUBLEPOST]
    As a temporary fix, this plugin might be able to fix your metabolism:

    Just upload the plugin and run the command: /fixmeta
     

    Attached Files:

  15. How can login as admin what commands are written to the console
     
  16. Wulf

    Wulf Community Admin

    The Overview has all of that documented. You'd need to use Oxide's permissions system (there's a tutorial on how).
     
  17. @Wulf, how exactly would I do a nil check when checking if it's 'nil' results in an error?

    Code:
    if info then
            if info.Initiator then
                if info.Initiator:ToPlayer() ~= nil then -- Simply checking if it's 'nil' returns an error
                    local attacker = info.Initiator:ToPlayer()
                    if attacker then
                        attackerID = rust.UserIDFromPlayer( attacker )
                        if StatusData[attackerID] then
                            if StatusData[attackerID]["status"] then
                                if StatusData[attackerID]["status"] == true then
                                    if self.Config.Settings.DisableAdmin_vs_EntityDamageIfGodmode then nullify = true end
                                end
                            end
                        end   
                    end
                end
            end
        end
    The error:
    Code:
    [Oxide] 4:08 PM [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'Admi
    n 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 unkn
    own>: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) [0x000
    00] 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[]
    Line 229:
    Code:
    if info.Initiator:ToPlayer() ~= nil then
     
  18. Wulf

    Wulf Community Admin

    Try the below. You've got a lot of unneeded if statements and nesting. My example can probably be reduced even more.
    Code:
    if not info.Initiator then return end
    if not info.Initiator:ToPlayer() then return endlocal attacker = info.Initiator:ToPlayer()
    local attackerID = rust.UserIDFromPlayer(attacker)if StatusData[attackerID]["status"] then
        if self.Config.Settings.DisableAdmin_vs_EntityDamageIfGodmode then nullify = true end
    end
     
  19. I doubt I can return in my current code, since I am doing 3 different kind of checks (is it an entity? is it a player? is the victim/attacker in godmode) so returning would probably skip 1 or more of those checks. I think I will need to reconstruct the entire function, but thank you for your example.