blob: 57bee3b582afb030edc6ec000b4a4f3bab3cf63b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package net.ess3.xmpp;
import net.ess3.api.IUser;
import net.ess3.commands.EssentialsCommand;
import net.ess3.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]);
}
}
|