From: David ‘Bombe’ Roden Date: Wed, 27 Oct 2010 17:37:10 +0000 (+0200) Subject: Move default Sones to own method. X-Git-Tag: 0.1-RC1~7 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=6ad31fd6ff7b5b27e65f2de7599382d7ad8802e8;p=Sone.git Move default Sones to own method. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index e64f996..e35e644 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -712,6 +712,16 @@ public class Core extends AbstractService { // /** + * Adds some default Sones. + */ + private void addDefaultSones() { + /* Sone’s Sone. */ + loadSone("USK@eRHt0ceFsHjRZ11j6dd68RSdIvfd8f9YjJLZ9lnhEyo,iJWjIWh6TkMZm1NY8qBranKTIuwsCPkVPG6T6c6ft-I,AQACAAE/Sone/0"); + /* Bombe’s Sone. */ + loadSone("USK@RuW~uAO35Ipne896-1OmaVJNPuYE4ZIB5oZ5ziaU57A,7rV3uiyztXBDt03DCoRiNwiGjgFCJuznM9Okc1opURU,AQACAAE/Sone/15"); + } + + /** * Loads the configuration. */ @SuppressWarnings("unchecked") @@ -721,10 +731,7 @@ public class Core extends AbstractService { boolean firstStart = configuration.getBooleanValue("FirstStart").getValue(true); if (firstStart) { logger.log(Level.INFO, "First start of Sone, adding a couple of default Sones…"); - /* Sone’s Sone. */ - loadSone("USK@eRHt0ceFsHjRZ11j6dd68RSdIvfd8f9YjJLZ9lnhEyo,iJWjIWh6TkMZm1NY8qBranKTIuwsCPkVPG6T6c6ft-I,AQACAAE/Sone/0"); - /* Bombe’s Sone. */ - loadSone("USK@RuW~uAO35Ipne896-1OmaVJNPuYE4ZIB5oZ5ziaU57A,7rV3uiyztXBDt03DCoRiNwiGjgFCJuznM9Okc1opURU,AQACAAE/Sone/15"); + addDefaultSones(); try { configuration.getBooleanValue("FirstStart").setValue(false); } catch (ConfigurationException ce1) {