URIEnforcer
Intro
Do you have a domain name set up for your server? Are people connecting with a different address or the raw IP? Then this plugin may be for you!
It will kick people connecting with any other address than the one specified in the configuration file with the friendly message "Please log in using <your address>"
Configuration
This part couldn't really be easier. There's only one configuration node in config.yml:
ip: example.com
From 1.2, you can specify multiple addresses:
ip: [example.com, example.net]
In which case the first will be the one in the kick messages.
Running on a port other than the default, such as example.com:25566, is detected and added if necessary
Love this plugin, My only request would be to add the ability to use a custom message. Such as: This server does not support direct connections.
i suggest you add a custom message cause I have dumb people on my server and they think its a website ikr so make sure you add that WFI they are girls they are really dumb :P
@cedeel
Thanks, you're awesome!
@deleted_8591593
I will add that soon. In the meantime I suggest you disable the plugin while working locally.
Edit: 1.2 is now awaiting approval, in which you can do this.
It works awesome, However would it be possible to add another ip? I sometimes turn off the port forward on my router to work on the server locally and the local ip wont work if I have it set to the dns name. Thanks!