@EventHandler
    public void onPlayerJoin(PlayerJoinEvent event)
    {
        if(plugin.config.getBoolean("Apply.Enabled"))
        {
            Player player = event.getPlayer();
            String pw = plugin.config.getString("Apply.Password");
            String group = plugin.config.getString("Apply.Group");
            if(!player.hasPermission("MasterPromote.member"))
            {
                String msg = plugin.messages.getString("Join").replace("&", "\247");
                msg = msg.replace("<group>", group);
                msg = msg.replace("<password>", pw);
                String[] msgs = msg.split("<newline>");
                for(String s : msgs)
                {
                    player.sendMessage(s);
                }

            }
        }
        
        if(plugin.config.getBoolean("Time.Enabled"))
        {
            Player player = event.getPlayer();
            if(!player.hasPermission("MasterPromote.member"))
            {
            	if(!plugin.timepromote.containsKey(player.getName().toLowerCase()))
            	{
            		plugin.timepromote.put(player.getName().toLowerCase(), plugin.config.getLong("Time.Time"));
            	}
            }
        }
    }