Requires the library mod Collective.
Automatic Operator was initially created to make testing server-side mods easier in Fabric. By default, Fabric chooses a random name (Player1 -> Player999) as the username. This caused some issues in the development server where I needed cheat-access for testing. This mod makes it so that any player that joins, is automatically given operator permission. Released to the public in case someone else has a use for it as well.
Can be added to modpacks, but keep in mind your players might not want this functionality. This is why the mod is disabled by default.
Set 'enableAutomaticOperator' in the config to true to enable it.
Configurable: ( how do I configure? )
enableAutomaticOperator (default = false): If the mod should be enabled. Turned off by default to prevent unwanted behaviour in modpacks.
onlyRunOnDedicatedServers (default = true): If the mod should only run on dedicated servers.
onlyMakeSpecificPlayerNamesOP (default = false): If enabled, only player names specified in 'specificOperatorPlayerNames' will be made operators. If disabled, everyone will.
specificOperatorPlayerNames (default = "Player1,Player2"): The specific names of players that the mod automatically makes operators. Seperated by a comma ( , ).
Whenever a player logs in, they'll automatically be made a server operator (OP-ed):
Show Spoiler
------------------
You may freely use this mod in any modpack, as long as the download remains hosted within the Modrinth ecosystem.
Serilum.com contains an overview and more information on all mods available.
Comments are disabled as I'm unable to keep track of all the separate pages on each mod.
For issues, ideas, suggestions or anything else there is the Github repo. Thanks!
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+