summaryrefslogtreecommitdiffstats
path: root/EssentialsUpdate/src/com/earth2me/essentials/update/states/EssentialsChatSettings.java
blob: 6666ff3718509fe09205461177f431e1274347d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.earth2me.essentials.update.states;

import org.bukkit.entity.Player;


public class EssentialsChatSettings extends AbstractYesNoState
{
	public EssentialsChatSettings(final StateMap states)
	{
		super(states, EssentialsSpawn.class);
	}

	@Override
	public boolean guessAnswer()
	{
		if (getState(AdvancedMode.class).getAnswer())
		{
			setAnswer(false);
			return true;
		}
		return false;
	}

	@Override
	public void askQuestion(final Player sender)
	{
		sender.sendMessage("Would you like to configure EssentialsChat to prefix ingame messages with their group?");
	}
}