Version 3.1.19
1,395 downloads
Installation
Place the AdminToggle.cs file in /oxide/plugins/
Place the XLIB.dll Dependency in /RustDedicated_Data/Managed/
Grant yourself the default permission o.grant user YOURNAME admintoggle.master the .master permission selector needs to be adapted to what you called the permission setting for the mode
Information
AdminToggle Allows admins with permission to toggle between player & admin mode
Reset Command Open f1 console & write at.fix - Reverts you to player mode (the hard way)
(Permission, Priority, Toggle Commands) - Must be unique
Core Mode Featues
Unlimited custom modes
Customizable permission name
Priority system for modes
Master mode
Oxide group toggling
Custom commands to toggle
Restriction system to specfic steam ids a certan mode
Mode Settings (admin)
Require a reason to toggle
Autorun commands on toggle
Separated inventories
Teleport back to toggle location upon exiting
Revert auth to 0 on disconnect
Blocked commands
Custom outfit while in mode
Notifications (global-chat notification, local-chat notification, popup notification, sound perfab notification & Discord embed Notification)
Interface toggle button, pulsing panel, action menu
Blocked actions
Blocked plugins hooks
Mode Settings (player)
Autorun commands on revert
Notifications (global-chat notification, local-chat notification, popup notification, sound perfab notification & Discord embed Notification)
Blocked commands
Blocked plugins hooks
API Hooks
void admintoggle_onAdmin (BasePlayer player) { /*Do something epic*/ }
void admintoggle_onPlayer (BasePlayer player) { /*Do something epic*/ }
API Methods
bool IsAdmin(BasePlayer player);
object[] GetMode(BasePlayer player, bool TrueMode = false);
/*
IF player.userID IS ASSIGNED ANY MODE RETURNS TRUE
IF player.userID IS NOT ASSIGNED ANY MODE RETURNS FALSE
*/
bool isAdmin = AdminToggle.Call<bool>("IsAdmin", player.userID);
/*
IF player IS NOT ASSIGNED MODE RETURNS NULL
IF bool IS SET FALSE RETURNS CURRENT MODE -- object[0] permission (string), object[1] priority (int), object[2] isMaster (bool)
IF bool IS SET TRUE RETURNS HIGHEST MODE -- object[0] permission (string), object[1] priority (int), object[2] isMaster (bool)
*/
object[] getMode = AdminToggle.Call<object[]>("GetMode", player, false);
Default Configuration (1 mode)
Known incompatible plugins
Server Armour (Compatible with v2.29.44 and above)