Skip to content

Commit ef6f0fc

Browse files
author
games647
committed
Fix detecting floodgate on plugin name
Floodgate's name is lowercase Related #630
1 parent 1f83a65 commit ef6f0fc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

bukkit/src/main/java/com/github/games647/fastlogin/bukkit/FastLoginBukkit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public void onEnable() {
146146
}
147147

148148
private boolean initializeFloodgate() {
149-
if (getServer().getPluginManager().getPlugin("Floodgate") != null) {
149+
if (getServer().getPluginManager().getPlugin("floodgate") != null) {
150150
floodgateService = new FloodgateService(FloodgateApi.getInstance(), core);
151151

152152
// Check Floodgate config values and return

bungee/src/main/java/com/github/games647/fastlogin/bungee/FastLoginBungee.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public void onEnable() {
8686
return;
8787
}
8888

89-
if (isPluginInstalled("Floodgate")) {
89+
if (isPluginInstalled("floodgate")) {
9090
floodgateService = new FloodgateService(FloodgateApi.getInstance(), core);
9191
}
9292

bungee/src/main/java/com/github/games647/fastlogin/bungee/listener/ConnectListener.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ public void onLogin(LoginEvent loginEvent) {
161161

162162
private void setOfflineId(InitialHandler connection, String username) {
163163
try {
164-
final UUID oldPremiumId = connection.getUniqueId();
165-
final UUID offlineUUID = UUIDAdapter.generateOfflineId(username);
164+
UUID oldPremiumId = connection.getUniqueId();
165+
UUID offlineUUID = UUIDAdapter.generateOfflineId(username);
166166

167167
// BungeeCord only allows setting the UUID in PreLogin events and before requesting online mode
168168
// However if online mode is requested, it will override previous values

0 commit comments

Comments
 (0)