mirror of
https://github.com/essentials/Essentials.git
synced 2025-09-28 15:19:06 +02:00
Added EssentialsXMPP from newplugins branch.
Updated to work with trunk. git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1564 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user