2011-03-19 22:39:51 +00:00
|
|
|
package com.earth2me.essentials.commands;
|
|
|
|
|
|
|
|
import com.earth2me.essentials.User;
|
2011-05-15 01:30:54 +00:00
|
|
|
import com.earth2me.essentials.Util;
|
2011-11-18 17:42:26 +00:00
|
|
|
import org.bukkit.Server;
|
2011-03-19 22:39:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
public class Commandtptoggle extends EssentialsCommand
|
|
|
|
{
|
|
|
|
public Commandtptoggle()
|
|
|
|
{
|
|
|
|
super("tptoggle");
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2011-11-18 19:30:05 +00:00
|
|
|
public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception
|
2011-03-19 22:39:51 +00:00
|
|
|
{
|
2011-05-15 01:30:54 +00:00
|
|
|
user.sendMessage(user.toggleTeleportEnabled()
|
|
|
|
? Util.i18n("teleportationEnabled")
|
|
|
|
: Util.i18n("teleportationDisabled"));
|
2011-03-19 22:39:51 +00:00
|
|
|
}
|
|
|
|
}
|