diff options
author | snowleo <schneeleo@gmail.com> | 2011-10-26 18:18:58 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-10-26 18:18:58 +0200 |
commit | 4fc08153ad6a53e06a8f284a109200d6c4242d6f (patch) | |
tree | a7561c0810a43d6ffe27be3012cf1c5e8b5f45b6 /EssentialsUpdate/src/com/earth2me/essentials/update/states/EssentialsChatSettings.java | |
parent | 91b6a19250c3c8c180a38daa8dd40fa1581e00d9 (diff) | |
download | Essentials-4fc08153ad6a53e06a8f284a109200d6c4242d6f.tar Essentials-4fc08153ad6a53e06a8f284a109200d6c4242d6f.tar.gz Essentials-4fc08153ad6a53e06a8f284a109200d6c4242d6f.tar.lz Essentials-4fc08153ad6a53e06a8f284a109200d6c4242d6f.tar.xz Essentials-4fc08153ad6a53e06a8f284a109200d6c4242d6f.zip |
Advanced mode
Diffstat (limited to 'EssentialsUpdate/src/com/earth2me/essentials/update/states/EssentialsChatSettings.java')
-rw-r--r-- | EssentialsUpdate/src/com/earth2me/essentials/update/states/EssentialsChatSettings.java | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/EssentialsUpdate/src/com/earth2me/essentials/update/states/EssentialsChatSettings.java b/EssentialsUpdate/src/com/earth2me/essentials/update/states/EssentialsChatSettings.java index 1401f7191..6666ff371 100644 --- a/EssentialsUpdate/src/com/earth2me/essentials/update/states/EssentialsChatSettings.java +++ b/EssentialsUpdate/src/com/earth2me/essentials/update/states/EssentialsChatSettings.java @@ -1,10 +1,6 @@ package com.earth2me.essentials.update.states; -import com.earth2me.essentials.update.WorkListener; -import com.earth2me.essentials.update.tasks.InstallModule; -import org.bukkit.Bukkit; import org.bukkit.entity.Player; -import org.bukkit.plugin.Plugin; public class EssentialsChatSettings extends AbstractYesNoState @@ -15,20 +11,19 @@ public class EssentialsChatSettings extends AbstractYesNoState } @Override - public void askQuestion(final Player sender) + public boolean guessAnswer() { - sender.sendMessage("Would you like to configure EssentialsChat to prefix ingame messages with their group?"); + if (getState(AdvancedMode.class).getAnswer()) + { + setAnswer(false); + return true; + } + return false; } @Override - public void doWork(final WorkListener listener) + public void askQuestion(final Player sender) { - if (getAnswer()) - { - //TODO: Configure plugin - - return; - } - listener.onWorkDone(); + sender.sendMessage("Would you like to configure EssentialsChat to prefix ingame messages with their group?"); } } |