Godmode

Moved

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

4.76667/5, 60 likes
  1. Sure you know what it is but for solve my issue i do what i explain then it's solved i was think that can help some.
     
  2. Wulf

    Wulf Community Admin

    For future references, I'd recommend checking your modified version against a site such as www.jsonlint.com.
     
  3. yes thank i got it but it's was not in error at load file like a special charset , } and i don't think the site can correct a name function right?
    In future i attempt to do it yes.
    GN
     
  4. So I have users that have both godmode.noattacking and godmode.invulnerable but neither flag seems to be working...

    I can see that they have the perm and there are no errors when reloading 4.1.0. Only changes I made were blaking out the name prefix in the config and setting both options to false.
     
  5. Wulf

    Wulf Community Admin

    Did they use the /god command to enable it?
     
  6. The perms are given to users that enter a zone. The perms appear just fine. Even if I manually add the perms they do not appear to work. There are no errors that I can see.
     
  7. Wulf

    Wulf Community Admin

    The user or admin still has to toggle the godmode with the god command. The permissions just set the abilities.
     
  8. Ah okay. So a zone that fires off the command to turn on god would toggle it correct? I'll look into making like a godmode on and a godmode off command so I can have a zone that turns it on and turn it off without toggling it.

    Thanks Wulf :D
     
  9. Wulf

    Wulf Community Admin

    Sure, just run the "god NameOrId" command and make sure they have the permissions for the abilities you want them to have.
     
  10. That would cause the zone to toggle god though correct? I'm working on making a god on $player.id and a god off to prevent players from walking back into the zone to toggle god mode and noattacking off.

    What I have works right now but when the god on / off command is run from the console I get:
    Code:
    Failed to call hook 'GodCommand' on plugin 'Godmode v4.1.0' (NullReferenceException: Object reference not set to an instance of an object)
    I've messed about with other plugins but haven't run into this.

    This is what I modified:

    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;
                    }
                }           
                else if (args.Length == 2)
                {
                    if (args[0].ToLower() == "on")
                    {
                        player.Reply("ON TEST");
                        EnableGodmode(player);
                    }
                    else if (args[0].ToLower() == "off")
                    {
                        player.Reply("OFF TEST");
                        DisableGodmode(player);
                    }
                }
                else
                {
                    ToggleGodmode(target, player);
                }
            }
     
  11. A big bug. It is impossible to run in Godmode. Quickly update thanks
     
  12. Wulf

    Wulf Community Admin

    You'd want it to enable it on the target, not the person sending the command.

    I don't see anything wrong in the code with this and didn't have any issues when testing.
     
  13. It tells me I dont have permission to use godmode or activate it even though all the other plugins work for me as admin
     
  14. can't sprint with god mode on anymore, after the newest patch :(
     
  15. Wulf

    Wulf Community Admin

    It doesn't use "admin", it uses the permissions listed on he Overview.

    Which permissions do you have assigned?
     
  16. looks like i didn't have godmode.untiring
    but didn't have that before last patch either.
    but works now after giving my self that permission
     
  17. Wulf

    Wulf Community Admin

    So you couldn't sprint at all or just couldn't sprint infinitely?
     
  18. I am not allowed to use the godmode command
    ??
     
  19. so godmode works but everyone can still kill me why?
     
  20. Wulf

    Wulf Community Admin

    Sounds like you don't have the godmode.invulnerable permission set.