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
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
well yeah, u can just detect if the server is in online mode, if it isnt, just disable ur plugin
The issue is i dont know how to detect that, hense asking if there was any doccumentation about that
quite simple actually
😳
Could check for v3 or v4 UUID's.
yeah, i guess you would need a way to check if ur on a proxy or not first
v3 the proxy is offline mode, v4 the proxy is online mode
:NODDERS:
as a general rule of thumb
but this would work for non proxied servers
some premium auth plugins are now starting to pass the v4 uuid which is zzz
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
!solved
post closed!
The post/thread has been closed!
Requested by xanthus58#0