Godmode

Moved

Total Downloads: 30,057 - First Release: Oct 23, 2014 - Last Update: Oct 27, 2017

4.76667/5, 60 likes
  1. Can you please explain why its not working
     
  2. Wulf

    Wulf Community Admin

    You need to grant the permissions as described on the Overview.
     
  3. Last time fall due to a bug in elevator cave with latest version i be damaged 90% then i redo /god then /god to reactivate then life become 100%
    Then i back to 4.0.3 :/
    Br
     
  4. Wulf

    Wulf Community Admin

    Sounds like you do not have "godmode.invulnerable" granted.
     
  5. sure ! pouaahhhh Wulf why put lots permission for only one switch god or not god my brain explode... by this way how many perm we must add? i've already added .admin and .toggle then i go add like you say .invulnerable is that all?
     
  6. Wulf

    Wulf Community Admin

    The permissions are to allow specific abilities. If you want all of them, you can grant them with a wildcard. The purposes are described on the Overview. The admin and toggle permissions are for different commands and purpose, as you can see on the Overview.
     
  7. ok "If you want all of them, you can grant them with a wildcard" meannig they are all active only when you /god yourself/someone command or some of the perm do some abilities as permanent?
     
  8. Wulf

    Wulf Community Admin

    The permissions tell the plugin what the user/group can do, the command enables/disables those abilities.

    For basic godmode for each user in the admin group:
    • grant group admin godmode.invulnerable
    • grant group admin godmode.toggle
    This will give them no damage and allow them to enable/disable it on command.

    For more advanced godmode for each user in the admin group:
    • grant group admin godmode.*
    This will give them no damage, infinite run, godmode toggling on self, godmode toggling on others, etc.
     
  9. well i think i understand but not 100% surely please what is charset wildcard * thank
     
  10. Wulf

    Wulf Community Admin

    I provided an example above.
     
  11. yep tried to fix the dialog
    Br
     
  12. as long as i had godmode on, i could not sprint at all
     
  13. Code:
     void GodCommand(IPlayer player, string command, string[] args)
            {
                if ((args.Length > 0 && !player.HasPermission(permAdmin)) || !player.HasPermission(permToggle))
                {
                    player.Reply(Lang("NotAllowed", player.Id, command));
                    return;
                }            var target = args.Length > 0 ? players.FindPlayer(string.Join(" ", args.ToArray())) : player;            if (args.Length == 1)
                {
                    if (target == null || !target.IsConnected)
                    {
                        player.Reply(Lang("PlayerNotFound", player.Id, args[0].Sanitize()));
                        return;
                    }                if (player.Id == "server_console" && player == target)
                    {
                        player.Reply("The server console cannot use godmode");
                        return;
                    }
                }           
               
                if (args.Length == 2)
                {
                    if (args[0].ToLower() == "on")
                    {
                        EnableGodmode(target);
                    }
                    else if (args[0].ToLower() == "off")
                    {
                        DisableGodmode(target);
                    }
                }            ToggleGodmode(target, player);
            }
    With this modificaiton I still get:

    Code:
    Failed to call hook 'GodCommand' on plugin 'Godmode v4.1.0' (NullReferenceException: Object reference not set to an instance of an object)
    How bad am I at this?
     
  14. Wulf

    Wulf Community Admin

    Check he log for the full error.
     
  15. Sorry for being a dingus

    Here's the full error:

    Code:
    21:27 [Stacktrace]   at Oxide.Plugins.Godmode.EnableGodmode (IPlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Godmode.GodCommand (IPlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Godmode.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod 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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
    21:27 [Error] Failed to call hook 'GodCommand' on plugin 'Godmode v4.1.0' (NullReferenceException: Object reference not set to an instance of an object)
    21:27 [Stacktrace]   at Oxide.Plugins.Godmode.DisableGodmode (IPlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Godmode.GodCommand (IPlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Godmode.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod 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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
    
     
  16. Since the last update it turns off when I leave the server so every time I get on to check on things now I've been killed. I don't play but a lot of times keep a lot of stuff on me like to show new people how our lock on rockets work etc I logged out with a bunch of those on me this morning and then had been killed next time I logged in. I have to type /god to enable it every time I join the server. Never had to do that before
     
  17. Wulf

    Wulf Community Admin

    Sounds like you're still trying to enable god mode on the console or something there. Make sure you are targeting the right user.

    It doesn't have persistence right now as I was using the permissions for that before, but I guess I'll add a datafile back. :(
     
  18. (15:43:06) | Unable to load Godmode. Godmode.cs(274,52): error CS1525: Unexpected symbol `end-of-file'

    (15:43:06) | Previous version of plugin failed to load: Godmode
     
  19. Wulf

    Wulf Community Admin

    Errors like that mean the file was not downloaded completely or was edited by something erroneously.
     
  20. Still no way to run in Godmode. Quickly update thanks