1
0
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:
snowleo
2011-03-19 22:39:51 +00:00
parent ea668bf9d0
commit 59d0415c7d
221 changed files with 29722 additions and 0 deletions

View File

@@ -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 + "\".");
}
}