mirror of
https://github.com/essentials/Essentials.git
synced 2025-10-03 01:21:56 +02:00
Updated EssentialsSpawn to use the new config code
/spawn and /home now call the PlayerRespawnEvent to make it more compatible with other plugins.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user