Godmode4.2.14
Free
3
3 Views
3
3 Downloads
31.86 KB
File Size
December 29
Upload
December 24
Submitted
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
This plugin uses the permission system. To assign a permission, use oxide.grant user or group name or steam id permission. To remove a permission, use oxide.revoke user or group name or steam id permission.- 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 both chat and console commands using the same syntax. When using a command in chat, prefix it with a forward slash: `/`.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
The settings and options can be configured in the Godmode file under the config directory. The use of an editor and validator is recommended to avoid formatting issues and syntax errors.{
"Inform On Attack (true/false)": true,
"Show Name Prefix (true/false)": true,
"Name Prefix (Default [God])": "[God]", // This is implemented by modifying the player's name
"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
The default messages are in the Godmode file under the lang/en directory. To add support for another language, create a new language folder (e.g. de for German) if not already created, copy the default language file to the new folder and then customize the messages.{
"GodmodeDisabled": "You have color=#FF4500Disabled/color godmode",
"GodmodeDisabledBy": "Your godmode has been color=#FF4500Disabled/color by {0}",
"GodmodeDisabledFor": "You have color=#FF4500Disabled/color godmode for {0}",
"GodmodeEnabled": "You have color=#00FF00Enabled/color godmode",
"GodmodeEnabledBy": "Your godmode has been color=#00FF00Enabled/color by {0}",
"GodmodeEnabledFor": "You have color=#00FF00Enabled/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()




