FastLogin icon indicating copy to clipboard operation
FastLogin copied to clipboard

How to do this?

Open msmanui opened this issue 5 years ago • 3 comments

Is there any way to verify if a user is premium? Because if a "no-premium" user writes /premium, he will get whitelisted as premium even tho he is not and then will say "invalid session"

msmanui avatar Sep 17 '20 14:09 msmanui

Or any placeholder that %fastlogin_is_premum% = yes/no

msmanui avatar Sep 17 '20 14:09 msmanui

In the readme it is stated:

This plugin supports PlaceholderAPI on Spigot. It exports the following variable %fastlogin_status%. In BungeeCord environments, the status of a player will be delivered with a delay after the player already successful joined the server. This takes about a couple of milliseconds. In this case the value will be Unknown. Possible values: Premium, Cracked, Unknown

Furthermore, you might use this method, although it is deprecated: https://github.com/games647/FastLogin/blob/de1487b6aae79bbbb054bc3d8f883bf159aff1d9/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/FastLoginBukkit.java#L152-L153

gabriel2029 avatar Sep 20 '20 01:09 gabriel2029

I noticed the placeholder work fine only for Premium user, for cracked user it will appeaer Unknown instead Cracked, is a bug?

Malachiel87 avatar Sep 24 '20 07:09 Malachiel87