mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-08-02 12:14:41 +02:00
Added check if player is already premium + Updated FakePlayer against
the newest API changes
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
######0.7
|
######0.7
|
||||||
|
|
||||||
|
* Added a check if the player is already on the premium list
|
||||||
* Added a forwardSkin config option
|
* Added a forwardSkin config option
|
||||||
* Added premium UUID support
|
* Added premium UUID support
|
||||||
* Removes the need of an Bukkit auth plugin if you use a bungeecord one
|
* Removes the need of an Bukkit auth plugin if you use a bungeecord one
|
||||||
|
@@ -13,6 +13,7 @@ So they don't need to enter passwords. This is also called auto login (auto-logi
|
|||||||
* Cauldron support
|
* Cauldron support
|
||||||
* Forge/Sponge message support
|
* Forge/Sponge message support
|
||||||
* Premium UUID support
|
* Premium UUID support
|
||||||
|
* Forwards Skins
|
||||||
* BungeeCord support
|
* BungeeCord support
|
||||||
* Auto register new premium players
|
* Auto register new premium players
|
||||||
* Plugin: ProtocolSupport is supported and can be used as an alternative to ProtocolLib
|
* Plugin: ProtocolSupport is supported and can be used as an alternative to ProtocolLib
|
||||||
@@ -140,7 +141,7 @@ into the whitelist file of your Bukkit/Spigot server. For security reasons, don'
|
|||||||
This plugin will automatically detect if BungeeCord is running and handle premium checks on BungeeCord.
|
This plugin will automatically detect if BungeeCord is running and handle premium checks on BungeeCord.
|
||||||
|
|
||||||
####Could premium players have a premium UUID and Skin?
|
####Could premium players have a premium UUID and Skin?
|
||||||
Something like that is possible, but is not yet implemented.
|
Since 0.7 both features are implemented. You can check the config.yml in order to activate it.
|
||||||
|
|
||||||
####Is this plugin compatible with Cauldron?
|
####Is this plugin compatible with Cauldron?
|
||||||
It's not tested yet, but all needed methods also exists in Cauldron so it could work together.
|
It's not tested yet, but all needed methods also exists in Cauldron so it could work together.
|
||||||
|
@@ -33,8 +33,13 @@ public class PremiumCommand implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String playerName = sender.getName();
|
String playerName = sender.getName();
|
||||||
plugin.getEnabledPremium().add(playerName);
|
boolean exist = plugin.getEnabledPremium().add(playerName);
|
||||||
|
if (exist) {
|
||||||
|
sender.sendMessage(ChatColor.DARK_RED + "You are already on the premium list");
|
||||||
|
} else {
|
||||||
sender.sendMessage(ChatColor.DARK_GREEN + "Added to the list of premium players");
|
sender.sendMessage(ChatColor.DARK_GREEN + "Added to the list of premium players");
|
||||||
|
}
|
||||||
|
|
||||||
notifiyBungeeCord((Player) sender);
|
notifiyBungeeCord((Player) sender);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
@@ -1428,5 +1428,25 @@ public class UltraAuthHook implements BukkitAuthPlugin {
|
|||||||
public void setGliding(boolean arg0) {
|
public void setGliding(boolean arg0) {
|
||||||
throw new UnsupportedOperationException("Not supported yet.");
|
throw new UnsupportedOperationException("Not supported yet.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setAI(boolean arg0) {
|
||||||
|
throw new UnsupportedOperationException("Not supported yet.");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean hasAI() {
|
||||||
|
throw new UnsupportedOperationException("Not supported yet.");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setInvulnerable(boolean arg0) {
|
||||||
|
throw new UnsupportedOperationException("Not supported yet.");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isInvulnerable() {
|
||||||
|
throw new UnsupportedOperationException("Not supported yet.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -22,9 +22,7 @@
|
|||||||
autoRegister: false
|
autoRegister: false
|
||||||
|
|
||||||
# If this plugin detected that a player has a premium, it can also set the associated
|
# If this plugin detected that a player has a premium, it can also set the associated
|
||||||
# uuid from that account.
|
# uuid from that account. So if the players changes their usernames, they will still have
|
||||||
#
|
|
||||||
# So if the players changes their usernames, they will still have
|
|
||||||
# the same playerdata (inventory, permissions, ...)
|
# the same playerdata (inventory, permissions, ...)
|
||||||
#
|
#
|
||||||
# Warning: This also means that the UUID will be different if the player is connecting
|
# Warning: This also means that the UUID will be different if the player is connecting
|
||||||
|
Reference in New Issue
Block a user