mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-21 16:05:03 +00:00
21 lines
680 B
Java
21 lines
680 B
Java
package com.earth2me.essentials.spawn;
|
|
|
|
import com.earth2me.essentials.User;
|
|
import com.earth2me.essentials.commands.EssentialsCommand;
|
|
import org.bukkit.Server;
|
|
|
|
import static com.earth2me.essentials.I18n.tl;
|
|
|
|
|
|
public class Commandsetspawn extends EssentialsCommand {
|
|
public Commandsetspawn() {
|
|
super("setspawn");
|
|
}
|
|
|
|
@Override
|
|
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";
|
|
((SpawnStorage) module).setSpawn(user.getLocation(), group);
|
|
user.sendMessage(tl("spawnSet", group));
|
|
}
|
|
}
|