Arainrr
Allows players with permission to be invulerable and god-like

Supported Games

Godmode allows players with permission to become invulnerable and god-like. Players can also become untiring (infinite run/metabolism), be protected from looting, and more if they have the appropriate permission.

Permissions

  • godmode.admin -- Allows player to enable/disable godmode on other players using /god <name/id> command.
  • godmode.toggle -- Allows player to enable/disable godmode on self using /god command.
  • godmode.invulnerable -- Protects god from all damage.
  • godmode.lootplayers -- Allows god to freely loot other gods.
  • godmode.lootprotection -- Prevents others players from looting god.
  • godmode.noattacking -- Prevents god from attacking other players.
  • godmode.untiring -- Allows god to have infinite run and metabolism.
  • godmode.autoenable -- Godmode is auto enabled when the player enters server

Hint: To grant ALL permissions, simply use godmode.* as the permission.

Commands

This plugin provides universal chat and console commands. When using a command in the chat, prefix it with a forward slash / or the symbol you have configured in oxide.config.json.

The 'god' console command is overridden by rust's 'god' console command

  • god -- Toggle player's godmode on/off; requires godmode.toggle permission
  • god <name or id> -- Toggles target player's godmode on/off; requires godmode.admin permission
  • gods -- List all players with godmode enabled; requires godmode.admin permission

Configuration

{
  "Inform On Attack (true/false)": true,
  "Show Name Prefix (true/false)": true,
  "Name Prefix (Default [God])": "[God]",
  "Time Limit (Seconds, 0 to Disable)": 0.0,
  "Disable godmode after disconnect (true/false)": false,
  "Chat Prefix": "[Godmode]:",
  "Chat Prefix color": "#00FFFF",
  "Chat steamID icon": 0,
  "God commands": [
    "god",
    "godmode"
  ],
  "Gods commands": [
    "gods",
    "godlist"
  ]
}

Localization

{
  "GodmodeDisabled": "You have <color=#FF4500>Disabled</color> godmode",
  "GodmodeDisabledBy": "Your godmode has been <color=#FF4500>Disabled</color> by {0}",
  "GodmodeDisabledFor": "You have <color=#FF4500>Disabled</color> godmode for {0}",
  "GodmodeEnabled": "You have <color=#00FF00>Enabled</color> godmode",
  "GodmodeEnabledBy": "Your godmode has been <color=#00FF00>Enabled</color> by {0}",
  "GodmodeEnabledFor": "You have <color=#00FF00>Enabled</color> godmode for {0}",
  "InformAttacker": "{0} is in godmode and can't take any damage",
  "InformVictim": "{0} just tried to deal damage to you",
  "CantAttack": "you is in godmode and can't attack {0}",
  "NoGods": "No players currently have godmode enabled",
  "NoLooting": "You are not allowed to loot a player with godmode",
  "NotAllowed": "You are not allowed to use the '{0}' command",
  "PlayerNotFound": "Player '{0}' was not found"
}

Hooks

private object OnGodmodeToggle(string playerId,bool changeState)
private void OnGodmodeToggled(string playerId,bool enabled)

API

private bool IsGod(string playerId)
private string[] AllGods(string playerId)

Credits

  • Mughisi, for the original version of this plugin
  • Wulf, for the re-write of this plugin

MIT License


Copyright (c) 2019 Arainrr


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:


The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.


THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



31.4K downloads
516 watchers

importedgod