Message de connexion (en français) seulement après le /login
This commit is contained in:
parent
3de34319b5
commit
a03a3f373a
@ -8,5 +8,6 @@
|
||||
<classpathentry kind="lib" path="lib/ProtocolLib-3.2.0.jar"/>
|
||||
<classpathentry kind="lib" path="lib/WorldEdit-5.6.jar"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="lib" path="lib/PandacraftAuth.jar" sourcepath="R:/Dropbox/wspace_java_minecraft/xAuth.src"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
|
BIN
lib/PandacraftAuth.jar
Normal file
BIN
lib/PandacraftAuth.jar
Normal file
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<jardesc>
|
||||
<jar path="PandacraftUtils/jar_export/PandacraftUtils-2.3.jar"/>
|
||||
<jar path="PandacraftUtils/jar_export/PandacraftUtils-2.4.jar"/>
|
||||
<options buildIfNeeded="true" compress="true" descriptionLocation="/PandacraftUtils/make_jar.jardesc" exportErrors="true" exportWarnings="true" includeDirectoryEntries="false" overwrite="false" saveDescription="true" storeRefactorings="false" useSourceFolders="false"/>
|
||||
<storedRefactorings deprecationInfo="true" structuralOnly="false"/>
|
||||
<selectedProjects/>
|
||||
|
@ -1,6 +1,6 @@
|
||||
name: PandacraftUtils
|
||||
main: net.mc_pandacraft.java.plugin.pandacraftutils.PandacraftUtils
|
||||
version: 2.3
|
||||
version: 2.4
|
||||
|
||||
|
||||
|
||||
|
@ -5,6 +5,7 @@ import net.mc_pandacraft.java.plugin.pandacraftutils.afk.CommandAfk;
|
||||
import net.mc_pandacraft.java.plugin.pandacraftutils.chat_analyzer.ChatAnalysisManager;
|
||||
import net.mc_pandacraft.java.plugin.pandacraftutils.creativ_cheat.CreativCheatManager;
|
||||
import net.mc_pandacraft.java.plugin.pandacraftutils.list.CommandList;
|
||||
import net.mc_pandacraft.java.plugin.pandacraftutils.login_message.LoginLogoutManager;
|
||||
import net.mc_pandacraft.java.plugin.pandacraftutils.me.CommandMe;
|
||||
import net.mc_pandacraft.java.plugin.pandacraftutils.nopvp_protect.NoPvpProtectManager;
|
||||
import net.mc_pandacraft.java.plugin.pandacraftutils.ping.CommandPing;
|
||||
@ -33,6 +34,7 @@ public class PandacraftUtils extends JavaPlugin {
|
||||
public ChatAnalysisManager chatAnalysisManager;
|
||||
public CreativCheatManager creativCheatManager;
|
||||
public NoPvpProtectManager noPvpProtectManager;
|
||||
public LoginLogoutManager loginLogoutManager;
|
||||
|
||||
public PacketOutServerInfoListener serverPingListener;
|
||||
|
||||
@ -56,6 +58,7 @@ public class PandacraftUtils extends JavaPlugin {
|
||||
chatAnalysisManager = new ChatAnalysisManager(this);
|
||||
creativCheatManager = new CreativCheatManager(this);
|
||||
noPvpProtectManager = new NoPvpProtectManager(this);
|
||||
loginLogoutManager = new LoginLogoutManager(this);
|
||||
|
||||
serverPingListener = new PacketOutServerInfoListener(this);
|
||||
}
|
||||
|
@ -0,0 +1,42 @@
|
||||
package net.mc_pandacraft.java.plugin.pandacraftutils.login_message;
|
||||
|
||||
import net.mc_pandacraft.java.plugin.pandacraftutils.PandacraftUtils;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.event.player.PlayerJoinEvent;
|
||||
import org.bukkit.event.player.PlayerQuitEvent;
|
||||
|
||||
import de.luricos.bukkit.xAuth.events.xAuthLoginEvent;
|
||||
|
||||
public class LoginLogoutManager implements Listener {
|
||||
|
||||
private PandacraftUtils plugin;
|
||||
|
||||
|
||||
public LoginLogoutManager(PandacraftUtils pl) {
|
||||
plugin = pl;
|
||||
|
||||
plugin.getServer().getPluginManager().registerEvents(this, plugin);
|
||||
}
|
||||
|
||||
|
||||
@EventHandler
|
||||
public void onPlayerJoin(PlayerJoinEvent event) {
|
||||
event.setJoinMessage(null);
|
||||
}
|
||||
|
||||
|
||||
@EventHandler
|
||||
public void onxAuthLogin(xAuthLoginEvent event) {
|
||||
plugin.getServer().broadcastMessage(ChatColor.YELLOW+event.getPlayer().getDisplayName()+ChatColor.YELLOW+" vient de se connecter");
|
||||
}
|
||||
|
||||
|
||||
@EventHandler
|
||||
public void onPlayerQuit(PlayerQuitEvent event) {
|
||||
event.setQuitMessage(ChatColor.YELLOW+event.getPlayer().getDisplayName()+ChatColor.YELLOW+" a quitté le jeu");
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user