tried this, but it says unknown command
Godmode
Moved
Total Downloads: 30,058 - First Release: Oct 23, 2014 - Last Update: Oct 27, 2017
- 4.76667/5, 60 likes
-
Wulf Community Admin
-
-
After advice.
Immediately before a server wipe, I upload the new map so players can wander around freely before the next day when the game actually starts. Is this a suitable mod to give the command:
grant group default godmode.allowed
Any words of advice, perhaps with triggering AntiHack Alert warnings, etc? At the appropriate time, do I follow this with:
remove group default godmode.allowed -
Wulf Community Admin
-
Is there a Consol command that I can grant and then revoke group default the ability to noclip? And is this an ok idea for a short period of time on the server?
-
Wulf Community Admin
-
Hey @Wulf
Could I work with you get get a patch that allows compatibility with my mod.
I was thinking of making a version that can act as an API.
When in API mode it will not handle damage or looting, But another mode could call a function.
eg bool isGod => hook godmode?.call("isGod, player.userid)
As im currently having a conflict with your mod and this means that people are still able to loot bodies when they shouldn't. -
Wulf Community Admin
-
private bool isGod(ulong _player) => (bool)Godmode?.Call("isGod", _player);
It didnt work, also I know its strings not ulong. Just copied another function and changed the names -
Wulf Community Admin
-
[PluginReference]
private Plugin Godmode;
private bool isGod(string _player) => (bool)Godmode?.Call("isGod", _player);
But the other issue I am having is the conflicts with onloot and onentitydamage. as both mods would return something
So wanted to know if their is a way to stop your mod from returning something for looting and damage -
Wulf Community Admin
-
Since that was correct I will go back and try again. -
this plugin is working fine but i keep getting this in console....
Code:[Oxide] 02:03 [Error] Failed to call hook 'God' on plugin 'Godmode v3.2.1' (ArgumentException: oldValue is the empty string.) [Oxide] 02:03 [Debug] at System.String.Replace (System.String oldValue, System.String newValue) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Godmode.EnableGodmode (.BasePlayer player) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Godmode.God (.BasePlayer 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 name, System.Object[] args) [0x00000] in <filename unknown>:0
Last edited by a moderator: Sep 6, 2016 -
Wulf Community Admin
-
-
Wulf Community Admin
-
-
is there any way to alter the config where there is more options? like if they try and loot admin it doesnt tell them in chat? we dont want everyone knowing who we are or they will act different or badger u to change everything. i like to get on and chat and build and stuff.