From 1d3f395dbee799a2058104e58f8ffc1762acf049 Mon Sep 17 00:00:00 2001 From: Frank Baumann Date: Tue, 14 Jan 2014 14:51:14 +0100 Subject: [PATCH] Fixed: Loading broadcaster --- .../managerxl/broadcaster/Broadcaster.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/com/dre/managerxl/broadcaster/Broadcaster.java b/src/com/dre/managerxl/broadcaster/Broadcaster.java index 4955b06..aa3d5f6 100644 --- a/src/com/dre/managerxl/broadcaster/Broadcaster.java +++ b/src/com/dre/managerxl/broadcaster/Broadcaster.java @@ -290,20 +290,20 @@ public static void saveDefaultConfig(Config config) { public void loadConfig() { ConfigurationSection broadcasterConfig = P.p.config.getBroadcasterConfigSection(); - maxLevel = broadcasterConfig.getInt("Broadcaster.maxLevel"); - sendsPerLevel = broadcasterConfig.getInt("Broadcaster.sendsPerLevel"); - minTimeInMinutes = broadcasterConfig.getInt("Broadcaster.minTimeInMinutes"); - maxTimeInMinutes = broadcasterConfig.getInt("Broadcaster.maxTimeInMinutes"); - broadcastColor = broadcasterConfig.getString("Broadcaster.broadcastColor"); + maxLevel = broadcasterConfig.getInt("maxLevel"); + sendsPerLevel = broadcasterConfig.getInt("sendsPerLevel"); + minTimeInMinutes = broadcasterConfig.getInt("minTimeInMinutes"); + maxTimeInMinutes = broadcasterConfig.getInt("maxTimeInMinutes"); + broadcastColor = broadcasterConfig.getString("broadcastColor"); - broadcastText = broadcasterConfig.getString("Broadcaster.broadcastText"); - newsText = broadcasterConfig.getString("Broadcaster.newsText"); - dateText = broadcasterConfig.getString("Broadcaster.dateText"); + broadcastText = broadcasterConfig.getString("broadcastText"); + newsText = broadcasterConfig.getString("newsText"); + dateText = broadcasterConfig.getString("dateText"); - broadcastFolderName = broadcasterConfig.getString("Broadcaster.broadcastFolderName"); - broadcastDataFileName = broadcasterConfig.getString("Broadcaster.broadcastDataFileName"); - broadcastMsgFileName = broadcasterConfig.getString("Broadcaster.broadcastMsgFileName"); + broadcastFolderName = broadcasterConfig.getString("broadcastFolderName"); + broadcastDataFileName = broadcasterConfig.getString("broadcastDataFileName"); + broadcastMsgFileName = broadcasterConfig.getString("broadcastMsgFileName"); - timeColors = (ArrayList) broadcasterConfig.getList("Broadcaster.timeColors"); + timeColors = (ArrayList) broadcasterConfig.getList("timeColors"); } }