23 lines
506 B
Java
23 lines
506 B
Java
package com.earth2me.essentials.commands;
|
|
|
|
import com.earth2me.essentials.Essentials;
|
|
import com.earth2me.essentials.User;
|
|
import org.bukkit.Server;
|
|
|
|
|
|
public class Commandback extends EssentialsCommand
|
|
{
|
|
public Commandback()
|
|
{
|
|
super("back");
|
|
}
|
|
|
|
@Override
|
|
protected void run(Server server, Essentials parent, User user, String commandLabel, String[] args) throws Exception
|
|
{
|
|
user.canAfford(this);
|
|
user.sendMessage("§7Returning to previous location.");
|
|
user.teleportBack(this.getName());
|
|
}
|
|
}
|