forked from TuxCoding/FastLogin
Fix detecting floodgate on plugin name
Floodgate's name is lowercase Related #630
This commit is contained in:
@ -146,7 +146,7 @@ public class FastLoginBukkit extends JavaPlugin implements PlatformPlugin<Comman
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean initializeFloodgate() {
|
private boolean initializeFloodgate() {
|
||||||
if (getServer().getPluginManager().getPlugin("Floodgate") != null) {
|
if (getServer().getPluginManager().getPlugin("floodgate") != null) {
|
||||||
floodgateService = new FloodgateService(FloodgateApi.getInstance(), core);
|
floodgateService = new FloodgateService(FloodgateApi.getInstance(), core);
|
||||||
|
|
||||||
// Check Floodgate config values and return
|
// Check Floodgate config values and return
|
||||||
|
@ -86,7 +86,7 @@ public class FastLoginBungee extends Plugin implements PlatformPlugin<CommandSen
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isPluginInstalled("Floodgate")) {
|
if (isPluginInstalled("floodgate")) {
|
||||||
floodgateService = new FloodgateService(FloodgateApi.getInstance(), core);
|
floodgateService = new FloodgateService(FloodgateApi.getInstance(), core);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -161,8 +161,8 @@ public class ConnectListener implements Listener {
|
|||||||
|
|
||||||
private void setOfflineId(InitialHandler connection, String username) {
|
private void setOfflineId(InitialHandler connection, String username) {
|
||||||
try {
|
try {
|
||||||
final UUID oldPremiumId = connection.getUniqueId();
|
UUID oldPremiumId = connection.getUniqueId();
|
||||||
final UUID offlineUUID = UUIDAdapter.generateOfflineId(username);
|
UUID offlineUUID = UUIDAdapter.generateOfflineId(username);
|
||||||
|
|
||||||
// BungeeCord only allows setting the UUID in PreLogin events and before requesting online mode
|
// BungeeCord only allows setting the UUID in PreLogin events and before requesting online mode
|
||||||
// However if online mode is requested, it will override previous values
|
// However if online mode is requested, it will override previous values
|
||||||
|
Reference in New Issue
Block a user