X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fcore%2FPreferences.java;h=ce56e8b81f9cfcb31c6c50ddb09caf3fdc603198;hp=81237641d31d460ded481023f42989d4181c906d;hb=be9b08105333cb78ecef49ffbc4841dd62781bce;hpb=76ed638264e531a26e35647d13702db865a52321 diff --git a/src/main/java/net/pterodactylus/sone/core/Preferences.java b/src/main/java/net/pterodactylus/sone/core/Preferences.java index 8123764..ce56e8b 100644 --- a/src/main/java/net/pterodactylus/sone/core/Preferences.java +++ b/src/main/java/net/pterodactylus/sone/core/Preferences.java @@ -1,5 +1,5 @@ /* - * Sone - Preferences.java - Copyright © 2013–2015 David Roden + * Sone - Preferences.java - Copyright © 2013–2016 David Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -39,8 +39,6 @@ import com.google.common.eventbus.EventBus; /** * Convenience interface for external classes that want to access the core’s * configuration. - * - * @author David ‘Bombe’ Roden */ public class Preferences { @@ -105,6 +103,7 @@ public class Preferences { public Preferences setInsertionDelay(Integer insertionDelay) { this.insertionDelay.set(insertionDelay); eventBus.post(new InsertionDelayChangedEvent(getInsertionDelay())); + eventBus.post(new PreferenceChangedEvent("InsertionDelay", getInsertionDelay())); return this; }