A
Admincraft•17mo ago
Zephira

Is there a way to force a server to use online mode?

Hey so i do a bit of programming here and there and i want to make a new plugin as a learning experience, but only have it usable if ther server has offline mode disabled. I dont support cracked accounts nor do i want my plugin to. Is there an existing plugin that forces online mode that i can look at the code and take some inspo? Or like any doccumentation online about this?
13 Replies
Admincraft Meta
Admincraft Meta•17mo ago
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by xanthus58#0
QarthO
QarthO•17mo ago
well yeah, u can just detect if the server is in online mode, if it isnt, just disable ur plugin
Zephira
ZephiraOP•17mo ago
The issue is i dont know how to detect that, hense asking if there was any doccumentation about that
QarthO
QarthO•17mo ago
No description
QarthO
QarthO•17mo ago
quite simple actually 😳
Discount Milk
Discount Milk•17mo ago
Could check for v3 or v4 UUID's.
QarthO
QarthO•17mo ago
yeah, i guess you would need a way to check if ur on a proxy or not first
Discount Milk
Discount Milk•17mo ago
v3 the proxy is offline mode, v4 the proxy is online mode :NODDERS: as a general rule of thumb
QarthO
QarthO•17mo ago
but this would work for non proxied servers
Discount Milk
Discount Milk•17mo ago
some premium auth plugins are now starting to pass the v4 uuid which is zzz
QarthO
QarthO•17mo ago
so if ur making a private plugin not on a proxy, that one-liner will do the trick another option, is to have it also be a plugin on the proxy and it detect there, and then it will send a message to all of ur plugins on the backend servers letting them know they should disable if offlinemode
Zephira
ZephiraOP•17mo ago
!solved
Admincraft Meta
Admincraft Meta•17mo ago
post closed!
The post/thread has been closed!
Requested by xanthus58#0

Did you find this page helpful?