mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-15 13:36:31 +00:00
27 lines
592 B
Java
27 lines
592 B
Java
![]() |
package com.earth2me.essentials.xmpp;
|
||
|
|
||
|
import com.earth2me.essentials.User;
|
||
|
import com.earth2me.essentials.commands.EssentialsCommand;
|
||
|
import com.earth2me.essentials.commands.NotEnoughArgumentsException;
|
||
|
import org.bukkit.Server;
|
||
|
|
||
|
|
||
|
public class Commandsetxmpp extends EssentialsCommand
|
||
|
{
|
||
|
public Commandsetxmpp()
|
||
|
{
|
||
|
super("setxmpp");
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
protected void run(Server server, User user, String commandLabel, String[] args) throws Exception
|
||
|
{
|
||
|
if (args.length < 1)
|
||
|
{
|
||
|
throw new NotEnoughArgumentsException();
|
||
|
}
|
||
|
|
||
|
EssentialsXMPP.getInstance().setAddress(user, args[0]);
|
||
|
}
|
||
|
}
|