![]() |
Login - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Plugins (https://forum.cuberite.org/forum-1.html) +--- Forum: Plugin Releases (https://forum.cuberite.org/forum-2.html) +--- Thread: Login (/thread-811.html) |
RE: Login - NiLSPACE - 02-21-2015 I finaly started working on the rewrite. I uploaded my current code here: https://github.com/NiLSPACE/Login/tree/Rewrite Nothing works yet. Pretty much all I have is a database class. I simply uploaded it so people can follow the development. RE: Login - jan64 - 02-22-2015 I suggest using the db to store player coordinates when they logout/disconnect (teleporting player to spawn afterwards), and tp them where they were after logging in - that way, the chances that client gets the coordinates someones at without logging in (before they are teleported) become zero. I didn't really see anyone use this trick to get hidden base coords, but it doesn't mean it's impossible. Also, hiding player inventory on login could be a nice feature (but, that'd require a way to store it in the db). RE: Login - NiLSPACE - 02-22-2015 No need to store those things in a database. Simply a table is enough. I was already planning to add all those features ![]() RE: Login - NiLSPACE - 02-22-2015 I'm getting closer to finishing things. All I want to do now is:
RE: Login - jan64 - 02-22-2015 Unless by table you mean a table in storage, tables go away when you reload / restart the server. We don't want someones position/inventory to disappear with server restarts. As a side note, having plugin-registerable hooks that fire when someone registers / logs in / logs out could be nice. (I can code that when rewrite starts working reasonably) RE: Login - NiLSPACE - 02-22-2015 Or.. we simply return the position/inventory when the server reloads ![]() ![]() RE: Login - jan64 - 02-22-2015 You can't really return inventory / position to someone who logged out. So, i guess You are doing it by removing inventory when someone logs in (the bad way ![]() Also, i found something interesting while trying to find if anyone abused that before: http://wiki.vg/How_to_Write_a_Client At the very end, there's a list of client-side hacks with descriptions how they are implemented (That could be very useful for anti-cheat ![]() RE: Login - NiLSPACE - 03-01-2015 I'm having trouble implementing /removeacc. I need to get the UUID that a belongs to the given username. I tried cMojangAPI:GetUUIDFromPlayerName, but the result I get from there isn't found in the database. I tried some things, and found out that GetUUIDFromPlayerName always returns the online UUID. Shouldn't it return an offline uuid when the server is in offline mode? RE: Login - NiLSPACE - 03-03-2015 Is there a way to convert a username to either an offline UUID or an online UUID depending on the settings of the server? RE: Login - jan64 - 03-03-2015 I don't think we should bother with UUID's at all. This plugin is meant for offline servers. Maybe add a switch in the config file that'd allow switching between the online UUID's / usernames as identifiers. |