blob: 4fe9283dfb8309b1e03ec5e8007a229d9c4fe89f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package com.earth2me.essentials.xmpp;
import com.earth2me.essentials.api.IUser;
import com.earth2me.essentials.commands.EssentialsCommand;
import com.earth2me.essentials.commands.NotEnoughArgumentsException;
public class Commandsetxmpp extends EssentialsCommand
{
@Override
protected void run(final IUser user, final String commandLabel, final String[] args) throws NotEnoughArgumentsException
{
if (args.length < 1)
{
throw new NotEnoughArgumentsException();
}
EssentialsXMPP.getInstance().setAddress(user, args[0]);
user.sendMessage("XMPP address set to " + args[0]);
}
}
|