Merge branch '2.9' of github.com:essentials/Essentials into 2.9

This commit is contained in:
KHobbits 2012-09-14 00:59:25 +01:00
commit 18e315a048
3 changed files with 15 additions and 4 deletions

View File

@ -1,5 +1,6 @@
annotation.processing.enabled=true
annotation.processing.enabled.in.editor=false
annotation.processing.processors.list=
annotation.processing.run.all.processors=true
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
application.title=EssentialsXMPP
@ -64,14 +65,14 @@ dist.javadoc.dir=${dist.dir}/javadoc
endorsed.classpath=
excludes=
file.reference.bukkit.jar=../lib/bukkit.jar
file.reference.smack-3.2.1.jar=../lib/smack-3.2.1.jar
file.reference.smack-3.2.2.jar=../lib/smack-3.2.2.jar
includes=**
jar.archive.disabled=${jnlp.enabled}
jar.compress=true
jar.index=${jnlp.enabled}
javac.classpath=\
${reference.Essentials.jar}:\
${file.reference.smack-3.2.1.jar}:\
${file.reference.smack-3.2.2.jar}:\
${file.reference.bukkit.jar}
# Space-separated list of extra javac options
javac.compilerargs=-Xlint:unchecked

View File

@ -3,6 +3,7 @@ package com.earth2me.essentials.xmpp;
import com.earth2me.essentials.IEssentials;
import com.earth2me.essentials.User;
import java.util.List;
import org.bukkit.Bukkit;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
@ -49,9 +50,18 @@ class EssentialsXMPPPlayerListener implements Listener
List<String> users = EssentialsXMPP.getInstance().getSpyUsers();
synchronized (users)
{
for (String address : users)
for (final String address : users)
{
EssentialsXMPP.getInstance().sendMessage(address, message);
Bukkit.getScheduler().scheduleSyncDelayedTask(ess, new Runnable()
{
@Override
public void run()
{
EssentialsXMPP.getInstance().sendMessage(address, message);
}
});
}
}
}

BIN
lib/smack-3.2.2.jar Normal file

Binary file not shown.