Godmode
Moved
Total Downloads: 30,057 - First Release: Oct 23, 2014 - Last Update: Oct 27, 2017
- 4.76667/5, 60 likes
-
Wulf Community Admin
-
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 -
Wulf Community Admin
-
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?
-
Wulf Community Admin
-
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?
-
Wulf Community Admin
For basic godmode for each user in the admin group:
- grant group admin godmode.invulnerable
- grant group admin godmode.toggle
For more advanced godmode for each user in the admin group:
- grant group admin godmode.*
-
well i think i understand but not 100% surely please what is charset wildcard * thank
-
Wulf Community Admin
-
Br -
-
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); }
Code:Failed to call hook 'GodCommand' on plugin 'Godmode v4.1.0' (NullReferenceException: Object reference not set to an instance of an object)
-
Wulf Community Admin
-
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
-
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
-
Wulf Community Admin
-
(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 -
Wulf Community Admin
-
Still no way to run in Godmode. Quickly update thanks