Git Product home page Git Product logo

Comments (7)

Maxetto avatar Maxetto commented on August 16, 2024

There are also those 2 errors on Bungee's StartUp (Changes already done and re-applied on every startup?):
http://pastebin.com/4ciGVjhV

from fastlogin.

Maxetto avatar Maxetto commented on August 16, 2024

It seems that when BungeeCord is detected, the plugin doesn't even load the Database in the Bukkit side.

How can I send the request to the Bungee side of the Plugin, then?

from fastlogin.

games647 avatar games647 commented on August 16, 2024

And this function to get whether a player is Premium or not (Inside AsyncPlayerChatEvent):
plugin.getCore().getStorage().loadProfile(e.getPlayer().getName()).isPremium()

You don't get a NPE on loadProfile. getStorage() returns null if BungeeCord is enabled and this is intended for less configuration work and produce less stress on the MySQL database. So there is only one management component which takes care of it.

There are also those 2 errors on Bungee's StartUp (Changes already done and re-applied on every startup?):
http://pastebin.com/4ciGVjhV

You can ignore those errors. See the logging level. They are just used for debugging. Sadly there is no safe way to drop and create a new index without producing a new error.

How can I send the request to the Bungee side of the Plugin, then?

The plugin currently communicates over plugin-channels and it then sets a bukkit metadata field. You can make use of it. (although it's set before the proxy-key validation)

BTW: I'm thinking of removing proxy-key validation, because if FastLogin started up correctly in BungeeCord it will prevent fake messages from hackers.

from fastlogin.

Maxetto avatar Maxetto commented on August 16, 2024

Could you give me an example on how to request if someone is Premium to the BungeeSide and how to receive the answer?

from fastlogin.

games647 avatar games647 commented on August 16, 2024

Make an extra BungeeCord plugin and communicate over plugin-channels. Register the channel and define a custom protocol message. Something like

YourPlugin
IsPremium
Playername

read the message on the bungeecord side and then start a database query. You could also use the sessions, because the sessions in BungeeCord only expire on disconnect. After you got a result send the result back over the plugin-channel something like this:

YourPlugin
PremiumCheck
PlayerName
boolean

from fastlogin.

Maxetto avatar Maxetto commented on August 16, 2024

Ok, I think I got it.

from fastlogin.

Maxetto avatar Maxetto commented on August 16, 2024

I solved the problem by Listening for FastLogin "AUTO_LOGIN" plugin messages and adding those users to an ArrayList.

If the list contains the name, the player is Premium (as being Auto-Logged in), otherwise is Cracked. 😝

from fastlogin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.