diff options
author | snowleo <schneeleo@gmail.com> | 2011-09-02 16:15:57 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-09-02 16:16:15 +0200 |
commit | fb211d722cb93d1234930015746d963a02818d5f (patch) | |
tree | 3d8a80cd6094c5cd2d04cb546a92112ad897bfae /EssentialsXMPP/src/com/earth2me/essentials/xmpp/IEssentialsXMPP.java | |
parent | 1b3698283e0608d7fc8173d2a366ead01e12afee (diff) | |
download | Essentials-fb211d722cb93d1234930015746d963a02818d5f.tar Essentials-fb211d722cb93d1234930015746d963a02818d5f.tar.gz Essentials-fb211d722cb93d1234930015746d963a02818d5f.tar.lz Essentials-fb211d722cb93d1234930015746d963a02818d5f.tar.xz Essentials-fb211d722cb93d1234930015746d963a02818d5f.zip |
Prevent that hidden players broadcast afk messages
Prevent that moving players triggers unafk too early, they can now move within a radius of 3 blocks from the position where they went afk.
Diffstat (limited to 'EssentialsXMPP/src/com/earth2me/essentials/xmpp/IEssentialsXMPP.java')
-rw-r--r-- | EssentialsXMPP/src/com/earth2me/essentials/xmpp/IEssentialsXMPP.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/EssentialsXMPP/src/com/earth2me/essentials/xmpp/IEssentialsXMPP.java b/EssentialsXMPP/src/com/earth2me/essentials/xmpp/IEssentialsXMPP.java index d90bff803..1ed9fa732 100644 --- a/EssentialsXMPP/src/com/earth2me/essentials/xmpp/IEssentialsXMPP.java +++ b/EssentialsXMPP/src/com/earth2me/essentials/xmpp/IEssentialsXMPP.java @@ -1,5 +1,6 @@ package com.earth2me.essentials.xmpp; +import com.earth2me.essentials.IUser; import java.util.List; import org.bukkit.entity.Player; import org.bukkit.plugin.Plugin; @@ -13,7 +14,7 @@ public interface IEssentialsXMPP extends Plugin List<String> getSpyUsers(); - String getUserByAddress(final String address); + IUser getUserByAddress(final String address); boolean sendMessage(final Player user, final String message); @@ -23,5 +24,5 @@ public interface IEssentialsXMPP extends Plugin boolean toggleSpy(final Player user); - void broadcastMessage(final String name, final String message); + void broadcastMessage(final IUser sender, final String message); } |