2011-05-04 10:39:56 +00:00
|
|
|
package com.earth2me.essentials.commands;
|
|
|
|
import com.earth2me.essentials.User;
|
2011-05-11 22:42:48 +00:00
|
|
|
import com.earth2me.essentials.Util;
|
2011-05-04 10:39:56 +00:00
|
|
|
import org.bukkit.Server;
|
2011-05-04 14:23:22 +00:00
|
|
|
|
2011-05-04 10:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
public class Commandsocialspy extends EssentialsCommand
|
|
|
|
{
|
|
|
|
public Commandsocialspy()
|
|
|
|
{
|
|
|
|
super("socialspy");
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void run(Server server, User user, String commandLabel, String[] args) throws Exception
|
|
|
|
{
|
|
|
|
|
|
|
|
charge(user);
|
2011-05-11 22:42:48 +00:00
|
|
|
user.sendMessage("§7SocialSpy " + (user.toggleSocialSpy() ? Util.i18n("enabled") : Util.i18n("disabled")));
|
2011-05-04 10:39:56 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|