ID:269816
 
I'm relatively sure I made a post like this previously, but I couldn't find it after forum searching... so I post it again.

Is it possible to define who has debug access at runtime? I like having those nifty file names and line numbers when bugs crop up, but not the profile option available to the host.
Mobius Evalon wrote:
I'm relatively sure I made a post like this previously, but I couldn't find it after forum searching... so I post it again.

Is it possible to define who has debug access at runtime? I like having those nifty file names and line numbers when bugs crop up, but not the profile option available to the host.

Debug access is granted to anyone in the world's "admin" config list. Debug access grants the profile world command as well as the reboot world command, so that may be a problem.

Read up on world.SetConfig() and especially world.GetConfig() which is better documented. The documentation isn't the most complete, so you may need to play around a bit until you find out what syntax is wanted for that list in SetConfig().