summaryrefslogtreecommitdiffstats
path: root/EssentialsUpdate/src/com/earth2me/essentials/update/states/EssentialsSpawn.java
diff options
context:
space:
mode:
authormd_5 <md_5@bigpond.com>2012-06-27 20:03:26 +1000
committermd_5 <md_5@bigpond.com>2012-06-27 20:03:26 +1000
commit7bef2d3817634a4c396e61930460126dde3606ba (patch)
treeaddbcf9b25a818a10afb9e9363ddd4ee9145b490 /EssentialsUpdate/src/com/earth2me/essentials/update/states/EssentialsSpawn.java
parent3d96c9caaf19cc1e6849295067d2a3ac01f05351 (diff)
downloadEssentials-7bef2d3817634a4c396e61930460126dde3606ba.tar
Essentials-7bef2d3817634a4c396e61930460126dde3606ba.tar.gz
Essentials-7bef2d3817634a4c396e61930460126dde3606ba.tar.lz
Essentials-7bef2d3817634a4c396e61930460126dde3606ba.tar.xz
Essentials-7bef2d3817634a4c396e61930460126dde3606ba.zip
Cleanup signs, update and xmpp, more to come.
Diffstat (limited to 'EssentialsUpdate/src/com/earth2me/essentials/update/states/EssentialsSpawn.java')
-rw-r--r--EssentialsUpdate/src/com/earth2me/essentials/update/states/EssentialsSpawn.java47
1 files changed, 0 insertions, 47 deletions
diff --git a/EssentialsUpdate/src/com/earth2me/essentials/update/states/EssentialsSpawn.java b/EssentialsUpdate/src/com/earth2me/essentials/update/states/EssentialsSpawn.java
deleted file mode 100644
index 2a87638ba..000000000
--- a/EssentialsUpdate/src/com/earth2me/essentials/update/states/EssentialsSpawn.java
+++ /dev/null
@@ -1,47 +0,0 @@
-package com.earth2me.essentials.update.states;
-
-import com.earth2me.essentials.update.AbstractWorkListener;
-import com.earth2me.essentials.update.tasks.InstallModule;
-import org.bukkit.Bukkit;
-import org.bukkit.entity.Player;
-import org.bukkit.plugin.Plugin;
-
-
-public class EssentialsSpawn extends AbstractYesNoState
-{
- public EssentialsSpawn(final StateMap states)
- {
- super(states, null);
- }
-
- @Override
- public boolean guessAnswer()
- {
- final Plugin plugin = Bukkit.getPluginManager().getPlugin("EssentialsSpawn");
- if (plugin != null)
- {
- setAnswer(true);
- return true;
- }
- return false;
- }
-
- @Override
- public void askQuestion(final Player sender)
- {
- sender.sendMessage("Do you want to install EssentialsSpawn? (yes/no)");
- sender.sendMessage("EssentialsSpawn lets you control player spawning");
- sender.sendMessage("It allows you to set different places where players spawn on death, new players join and allows players to return to spawn.");
- }
-
- @Override
- public void doWork(final AbstractWorkListener listener)
- {
- if (getAnswer())
- {
- new InstallModule(listener, "EssentialsSpawn").start();
- return;
- }
- listener.onWorkDone();
- }
-} \ No newline at end of file