mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-15 05:33:40 +00:00
23 lines
607 B
Java
23 lines
607 B
Java
package com.earth2me.essentials.spawn;
|
|
|
|
import static com.earth2me.essentials.I18n._;
|
|
import com.earth2me.essentials.User;
|
|
import com.earth2me.essentials.commands.EssentialsCommand;
|
|
import org.bukkit.Server;
|
|
|
|
|
|
public class Commandsetspawn extends EssentialsCommand
|
|
{
|
|
public Commandsetspawn()
|
|
{
|
|
super("setspawn");
|
|
}
|
|
|
|
@Override
|
|
public void run(Server server, User user, String commandLabel, String[] args) throws Exception
|
|
{
|
|
final String group = args.length > 0 ? getFinalArg(args, 0) : "default";
|
|
ess.getSpawn().setSpawn(user.getLocation(), group);
|
|
user.sendMessage(_("spawnSet", group));
|
|
}
|
|
}
|