Godmode

Moved

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

4.76667/5, 60 likes
  1. Wulf

    Wulf Community Admin

    If grant comes back as unknown, that's a sure sign that Oxide isn't actually installed.
     
  2. hmm, ok.... will try again from the top to see whats wrong... thanks
     
  3. 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
     
  4. Wulf

    Wulf Community Admin

    Godmode should not trigger any anti-hack warnings. Also, I would discourage granting ALL users permission to use it. The command to get rid of a permissions is "revoke", not "remove" too.
     
  5. 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?
     
  6. Wulf

    Wulf Community Admin

    Godmode doesn't offer noclip, that's all Rust. All this plugin provides is damage protection.
     
  7. 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.
     
  8. Wulf

    Wulf Community Admin

    My plugin already has IsGod(id) that other plugins can use.
     
  9. Could you please give me an example of how that is meant 2 be called, as when I tried something along the lines of this:
    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
     
  10. Wulf

    Wulf Community Admin

    Did you create a PluginReference named Godmode like you have there? The function takes a string, not a player object.
     
  11. Yeah I had something like this:

    [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
     
  12. Wulf

    Wulf Community Admin

    No way to stop it, it'd be best to check if a player is in godmode and not handle it. What are you getting when checking isGod?
     
  13. I cant remember now, it was a few dev version back I tried using it, But recently I have had a few people complaining since some functions are causing conflict messages.
    Since that was correct I will go back and try again.
     
  14. 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
  15. Wulf

    Wulf Community Admin

    Looks like your oxide/lang file for the plugin is outdated.
     
  16. i just downloaded everything 2 days ago... ? this is new server.
     
  17. Wulf

    Wulf Community Admin

    Looking at it again, did you change the prefix to be nothing in the config? If so, that would be the cause. If you want to disable the prefix, don't remove that, just set PrefixEnabled to false.
     
  18. I am not sure what happened but i deleted config and reloaded it to make a new one and its fine now thanks.
     
  19. 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.