summaryrefslogtreecommitdiffstats
path: root/EssentialsSpawn/src/com/earth2me/essentials/spawn/Commandsetspawn.java
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-12-06 13:41:29 +0100
committersnowleo <schneeleo@gmail.com>2011-12-06 13:41:29 +0100
commit019b49ef11b453026e63b9e683d7827b85c81ab9 (patch)
tree60ecc9404f1efa7dc8ceb4d47884210a893da253 /EssentialsSpawn/src/com/earth2me/essentials/spawn/Commandsetspawn.java
parentf3b278eac291f88ca359d7c25e24c920ee4ac494 (diff)
downloadEssentials-019b49ef11b453026e63b9e683d7827b85c81ab9.tar
Essentials-019b49ef11b453026e63b9e683d7827b85c81ab9.tar.gz
Essentials-019b49ef11b453026e63b9e683d7827b85c81ab9.tar.lz
Essentials-019b49ef11b453026e63b9e683d7827b85c81ab9.tar.xz
Essentials-019b49ef11b453026e63b9e683d7827b85c81ab9.zip
Updated EssentialsSpawn to use the new config code
/spawn and /home now call the PlayerRespawnEvent to make it more compatible with other plugins.
Diffstat (limited to 'EssentialsSpawn/src/com/earth2me/essentials/spawn/Commandsetspawn.java')
-rw-r--r--EssentialsSpawn/src/com/earth2me/essentials/spawn/Commandsetspawn.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/EssentialsSpawn/src/com/earth2me/essentials/spawn/Commandsetspawn.java b/EssentialsSpawn/src/com/earth2me/essentials/spawn/Commandsetspawn.java
index 33dff8241..c6c89a20d 100644
--- a/EssentialsSpawn/src/com/earth2me/essentials/spawn/Commandsetspawn.java
+++ b/EssentialsSpawn/src/com/earth2me/essentials/spawn/Commandsetspawn.java
@@ -14,10 +14,10 @@ public class Commandsetspawn extends EssentialsCommand
}
@Override
- public void run(Server server, User user, String commandLabel, String[] args) throws Exception
+ public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception
{
final String group = args.length > 0 ? getFinalArg(args, 0) : "default";
- ess.getSpawn().setSpawn(user.getLocation(), group);
+ ((SpawnStorage)module).setSpawn(user.getLocation(), group);
user.sendMessage(_("spawnSet", group));
}
}