mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-20 15:35:08 +00:00
24 lines
556 B
Java
24 lines
556 B
Java
![]() |
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 Commandspawn extends EssentialsCommand
|
||
|
{
|
||
|
public Commandspawn()
|
||
|
{
|
||
|
super("spawn");
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void run(Server server, Essentials parent, User user, String commandLabel, String[] args) throws Exception
|
||
|
{
|
||
|
user.canAfford(this);
|
||
|
user.teleportCooldown();
|
||
|
user.respawn(Essentials.getStatic().spawn, this.getName());
|
||
|
}
|
||
|
}
|