From 6ad31fd6ff7b5b27e65f2de7599382d7ad8802e8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 27 Oct 2010 19:37:10 +0200 Subject: [PATCH] Move default Sones to own method. --- src/main/java/net/pterodactylus/sone/core/Core.java | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) 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) { -- 2.7.4