mirror of
https://github.com/essentials/Essentials.git
synced 2025-09-26 06:09:15 +02:00
Moving all files to trunk.
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@969 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package com.earth2me.essentials.spawn;
|
||||
|
||||
import org.bukkit.Server;
|
||||
import com.earth2me.essentials.Essentials;
|
||||
import com.earth2me.essentials.User;
|
||||
import com.earth2me.essentials.commands.EssentialsCommand;
|
||||
|
||||
|
||||
public class Commandsetspawn extends EssentialsCommand
|
||||
{
|
||||
public Commandsetspawn()
|
||||
{
|
||||
super("setspawn");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run(Server server, Essentials parent, User user, String commandLabel, String[] args) throws Exception
|
||||
{
|
||||
user.charge(this);
|
||||
String group = args.length > 0 ? getFinalArg(args, 0) : "default";
|
||||
parent.spawn.setSpawn(user.getLocation(), group);
|
||||
user.sendMessage("§7Spawn location set for group \"" + group + "\".");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user