/**
 *      author: Monofuel
 *      website: japura.net
 *      this file is distributed under the modified BSD license
 *      that should have been included with it.
 */


package japura.Tribes;

import java.util.ArrayList;
import java.util.List;

import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
import org.bukkit.entity.Entity;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerLoginEvent;
import org.bukkit.plugin.java.JavaPlugin;

public class LoginListener implements Listener {
	
	JavaPlugin plugin;

	public LoginListener(JavaPlugin plugin) {
		this.plugin = plugin;
		plugin.getServer().getPluginManager().registerEvents(this,plugin);
	}
	
	@EventHandler
	public void PlayerLogin(PlayerJoinEvent user) {
		String motd = plugin.getConfig().getString("MOTD");
		user.getPlayer().sendMessage(motd);	

	}

	public void TimestampLogin(PlayerLoginEvent event) {
                String user = event.getPlayer().getName();
                Tribe group = Tribes.getPlayersTribe(user);
                if (group == null) return;
                group.setLastLogTime(System.currentTimeMillis());
        }

}



@@ -839,17 +839,17 @@
 ic void 
-P
+p
 layerLog
@@ -986,17 +986,17 @@
 ic void 
-T
+t
 imestamp

fix case