1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-09-25 13:49:12 +02:00

Few more states in EssentialsUpdate

This commit is contained in:
KHobbits
2011-10-26 16:26:26 +01:00
parent 7895a2fc5a
commit d8a40db32c
6 changed files with 135 additions and 3 deletions

View File

@@ -0,0 +1,34 @@
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
{
public EssentialsChatSettings(final StateMap states)
{
super(states, EssentialsSpawn.class);
}
@Override
public void askQuestion(final Player sender)
{
sender.sendMessage("Would you like to configure EssentialsChat to prefix ingame messages with their group?");
}
@Override
public void doWork(final WorkListener listener)
{
if (getAnswer())
{
//TODO: Configure plugin
return;
}
listener.onWorkDone();
}
}