tainz / CommunityBridge

A Minecraft plugin for connecting your game to your website.
https://www.spigotmc.org/resources/communitybridge.2232/
20 stars 22 forks source link

Player IP Comparison Suggestion #164

Open LJasonH opened 10 years ago

LJasonH commented 10 years ago

Hello there. Great work with CB by the way.

I run a craftbukkit beta 1.7.3 server with bukkit 1.7.2. Due this setup I cannot check for a users Minecraft details unless polling with their password to do so, which most aren't comfortable with. Instead I run a T/F check using MyBB for premium accounts.

I ask that you could add a check to run an IP comparison from the users current IP to their last IP on the forum site/database that is linked. So the user must log into the website before playing on the server (to update their last IP), else they will be kicked.

I know you have a bit of work to do with UUIDs, but if you can add this small feature it will personally help myself, and many others that want their players to use the website more often. Thank you, Jason.

iain-davis commented 10 years ago

I do not understand this part of your post:

I run a craftbukkit beta 1.7.3 server with bukkit 1.7.2. Due this setup I cannot check for a users Minecraft details unless polling with their password to do so, which most aren't comfortable with.

The details needed by CommunityBridge are on the server itself, there shouldn't be any need for passwords or polling.

LJasonH commented 10 years ago

What I meant by that was, since the auth has changed from beta until the current release I am forced to run in offline mode. So the only way to check if the user has a premium account is either implementing the authentication and asking for their password in game, or simply by checking the return at https://minecraft.net/haspaid.jsp?user=X The point of matching IPs is so that you have to set it to your most recent IP, so that it prevents people from logging into your account without having additional ingame password checks (unless they get into forum accounts).

If you could add the option to compare 'lastip's from the database to the users connection IP and deny/allow accordingly it would help in my case, and promote forum activity in others if they so enable it.