summaryrefslogtreecommitdiffstats
path: root/EssentialsXMPP/src/com/earth2me/essentials/xmpp/IEssentialsXMPP.java
blob: df329156d316faaf3addba6f60eb67e9e55296b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.earth2me.essentials.xmpp;

import net.ess3.api.IUser;
import java.util.List;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;


public interface IEssentialsXMPP extends Plugin
{
	String getAddress(final Player user);

	String getAddress(final String name);

	List<String> getSpyUsers();

	IUser getUserByAddress(final String address);

	boolean sendMessage(final Player user, final String message);

	boolean sendMessage(final String address, final String message);

	void setAddress(final Player user, final String address);

	boolean toggleSpy(final Player user);

	void broadcastMessage(final IUser sender, final String message, final String xmppAddress);
}