Don't update hooks if we don't need to.
Dieser Commit ist enthalten in:
Ursprung
651581d677
Commit
429ca5d447
@ -142,9 +142,9 @@ public class ProtocolLibrary extends JavaPlugin {
|
|||||||
PlayerInjectHooks hook = config.getInjectionMethod();
|
PlayerInjectHooks hook = config.getInjectionMethod();
|
||||||
|
|
||||||
// Only update the hook if it's different
|
// Only update the hook if it's different
|
||||||
if (protocolManager.getPlayerHook().equals(hook)) {
|
if (!protocolManager.getPlayerHook().equals(hook)) {
|
||||||
|
logger.info("Changing player hook from " + protocolManager.getPlayerHook() + " to " + hook);
|
||||||
protocolManager.setPlayerHook(hook);
|
protocolManager.setPlayerHook(hook);
|
||||||
logger.info("Changing player hook to " + hook);
|
|
||||||
}
|
}
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (IllegalArgumentException e) {
|
||||||
detailedReporter.reportWarning(config, "Cannot parse injection method. Using default.", e);
|
detailedReporter.reportWarning(config, "Cannot parse injection method. Using default.", e);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren