mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-18 22:49:45 +00:00

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1471 e251c2fe-e539-e718-e476-b85c1f46cddb
23 lines
524 B
Java
23 lines
524 B
Java
package com.earth2me.essentials.commands;
|
|
|
|
import org.bukkit.Server;
|
|
import com.earth2me.essentials.User;
|
|
import com.earth2me.essentials.Util;
|
|
|
|
|
|
public class Commandtptoggle extends EssentialsCommand
|
|
{
|
|
public Commandtptoggle()
|
|
{
|
|
super("tptoggle");
|
|
}
|
|
|
|
@Override
|
|
public void run(Server server, User user, String commandLabel, String[] args) throws Exception
|
|
{
|
|
charge(user);
|
|
user.sendMessage(user.toggleTeleportEnabled()
|
|
? Util.i18n("teleportationEnabled")
|
|
: Util.i18n("teleportationDisabled"));
|
|
}
|
|
}
|